mysqldump and wamp

Posted by Adam on Server Fault See other posts from Server Fault or by Adam
Published on 2009-10-21T14:02:13Z Indexed on 2011/11/14 9:56 UTC
Read the original article Hit count: 194

Filed under:
|
|
|

I am running a wamp server and trying to use mysqldump to backup a mysql database I have. The following is the PHP code I am using to run mysqldump.

exec("mysqldump backup -u$user -p$pass > $sql_file");

When I run the script the page just loads inifnately and the backup is not created.

A blank file is being created so I know something is happening.

Extra info:

  • exec() is not disabled
  • PHP is not running in safe mode

Any ideas??

Win XP, WAMP, MYSQL 5.0.51b

© Server Fault or respective owner

Related posts about mysql

Related posts about php