mysqldump

wxdqz

New Member
I have been playing with mysqldump and have use a script like:

<?

include("dataincludes/connect.inc");

$sql_dump = "mysqldump -u root $Marketplace_International > dbbackup.sql";

$sql_dump_result = exec($sql_dump);

echo "
\n sql_dump_result is " . $sql_dump_result;

return $sql_dump;
}
?>

right now, it creates the dbbackup.sql file but it is empty. I tried the same command from the mysql server and it works fine but when used in my script it comes up blank.

any help would be great.

Steve
 
Back
Top