![]() Topic awaiting preservation: mysqldump with php (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: Canada, Toronto |
![]() What do you think, is that possible? code: <?
|
Maniac (V) Mad Scientist From: Belgrade, Serbia |
![]() 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 |
![]() Cao Max, |
Paranoid (IV) Inmate From: Canada, Toronto |
![]() P.S. |
Maniac (V) Inmate From: there...no..there..... |
![]() Well now how fair is that? I can't read that mr.maX ! |
Paranoid (IV) Inmate From: Canada, Toronto |
![]() Basically Max suggested to use Telnet, Command Prompt but I cannot use that. |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
![]() |
Paranoid (IV) Inmate From: Canada, Toronto |
![]() I am just doing that. Their connection is terrible. |
Paranoid (IV) Inmate From: Canada, Toronto |
![]() Uploaded phpmyadmin files, modified config.inc.php file, and now I am getting this error: |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
![]() |
Paranoid (IV) Inmate From: Canada, Toronto |
![]() Ok, done. phpMyadmin works! |
Paranoid (IV) Inmate From: Canada, Toronto |
![]() Got it! |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
![]() |
Maniac (V) Lord Mad Scientist Sovereign of all the lands Ozone and just beyond that little green line over there... From: Stockholm, Sweden |
![]() 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.) |