MySQL Backup Creating Empty File
Posted: Sat Sep 03, 2005 11:02 am
Hi,
I am trying to copy a backup of the database on the server, here is the code:
It is correctly naming the file by date, time and it ends in .sql etc, but the file is empty.
So, what happens is that it all looks perfect on the server, but no data in the file. I have set chmod to 777 too.
Any idea why the file would be empty or what I could do to fix it?
Thanks in advance!
I am trying to copy a backup of the database on the server, here is the code:
Code: Select all
$ste_backup = $db . date("Y-m-d-H-i-s") . '.sql';
$ste_backup2 = "mysqldump --opt -h $dbhost -u $dbuser -p $dbpass $db > $ste_backup";
system($ste_backup2);So, what happens is that it all looks perfect on the server, but no data in the file. I have set chmod to 777 too.
Any idea why the file would be empty or what I could do to fix it?
Thanks in advance!