PDA

View Full Version : mysqldump: No such file or directory


DadRover
May 22, 2008, 09: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
May 22, 2008, 04:40 PM
Hi,

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

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

mitzukotaroko
Jul 4, 2008, 09:34 AM
Hallo,

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

Thanks,

Mitz

DadRover
Jul 10, 2008, 08:39 AM
in php.ini was safe_mod = On