Hey,
I was hoping someone could help me out.
I was using a php script to backup mysql on NT. That worked out well.
Now I have upgraded to win2000 and my php script won't run.
It's a simple enough script that I didn't think required any changing.
Can anyone see my problem? Or if anyone has a php script for a mysqldump they can share that would be great.
Here is my code:
<?php
#Connect to mysql database with user = root and password.
$mysqllink = mysql_connect("localhost", "root", "xxxxx");
$a = "c:\mysql\bin\mysqldump";
$b = "root";
$c = "xxxxx";
$db = "forum";
exec ("$a -u$b -p$c $db > d:\test1.dump");
?>
The error I am getting is as follows:
c:\mysql\bin\mysqldump: Can't get CREATE TABLE for table '>' (Can't find file: '
.\forum>.frm' (errno: 22))
X-Powered-By: PHP/4.0.6
Content-type: text/html
I don't have any problems using mysqldump manually on a command line.
I need some sort of script for scheduled daily backups.
Thanks
EM