Topic awaiting preservation: mysqldump with php |
|
---|---|
Author | Thread |
Paranoid (IV) Inmate From: Canada, Toronto |
posted 04-15-2002 19:57
What do you think, is that possible? code: <?
|
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 04-15-2002 21:56
Ja ne vidim razlog za pozivanje mysqldump-a preko PHP-a, s obzirom da je to najobicniji command-line program. Jednostavno ga pokreni direktno iz Command Prompt-a (Windows) ili Telnet/SSH shell-a (Unix). Ako kojim slucajem nemas shell pristup do Unix server-a, onda mozes da ga pozoves na slican nacin kao sto si gore napisao, jedino sto treba da uradis je da zamenis putanju (c:\mysql\bin) sa odgovarajucom putanjom na Linux server-u, i prosledis takav string exec() funkciji, "cmd /c" deo nije uopste potrebno prevodini za Linux, jer je "mysqldump" fajl vec namesten da se izvrsava (CHMOD 755). |
Paranoid (IV) Inmate From: Canada, Toronto |
posted 04-15-2002 22:06
Cao Max, |
Paranoid (IV) Inmate From: Canada, Toronto |
posted 04-15-2002 22:07
P.S. |
Maniac (V) Inmate From: there...no..there..... |
posted 04-15-2002 22:07
Well now how fair is that? I can't read that mr.maX ! |
Paranoid (IV) Inmate From: Canada, Toronto |
posted 04-15-2002 22:11
Basically Max suggested to use Telnet, Command Prompt but I cannot use that. |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 04-15-2002 22:14 |
Paranoid (IV) Inmate From: Canada, Toronto |
posted 04-15-2002 22:17
I am just doing that. Their connection is terrible. |
Paranoid (IV) Inmate From: Canada, Toronto |
posted 04-15-2002 22:33
Uploaded phpmyadmin files, modified config.inc.php file, and now I am getting this error: |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 04-15-2002 22:47 |
Paranoid (IV) Inmate From: Canada, Toronto |
posted 04-15-2002 23:01
Ok, done. phpMyadmin works! |
Paranoid (IV) Inmate From: Canada, Toronto |
posted 04-16-2002 01:09
Got it! |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 04-16-2002 07:05 |
Maniac (V) Lord Mad Scientist Sovereign of all the lands Ozone and just beyond that little green line over there... From: Stockholm, Sweden |
posted 04-16-2002 10:15
Yah, I also just installed phpMyAdmin, and am I loving it! What a great tool, I wouldn't know what to do without it. (I'm still learning MySQL, so I also don't know what I'll do *with* it either, but all the bells and whistles I expected were there. I've got an Oracle book at the office, it's got the basics, and http://www.mysql.com/ has all the other syntax and help files, I'll get by.) |