PDA

View Full Version : mysqldump: No such file or directory


DadRover
22nd May 2008, 10:08 AM
I have a problem with mysqldump

I Start a file buckup.php:
#!/usr/bin/php
<?php
system ("/usr/bin/mysqldump -uuser -ppassword -hhost base > fileName.sql" );
?>

and I receive result: " sh:/mysqldump: No such file or directory "

That I should make that all work true?

Satoriya
22nd May 2008, 05:40 PM
Hi,

seems like script is incorrect.
http://ru2.php.net/function.system
http://ru2.php.net/function.exec

DadRover
23rd May 2008, 08:40 AM
The script correct, earlier it worked on other server

mitzukotaroko
4th July 2008, 10:34 AM
Hallo,

i'm having exactly the same problem... anyone has a solution for that?

Thanks,

Mitz

DadRover
10th July 2008, 09:39 AM
in php.ini was safe_mod = On