I failed with the mysqldump method earlier. Now I'm trying to just call the batch file which will call the mysqldump. The php file which calls the batch file, looks something like this:
<?php
shell_exec('c:\\abc.bat');
?>
And the batch file, which when I execute directly yields the 7kb sql file that I'm expecting:
mysqldump --opt -u root -ppassword onstor > c:\onstordb.sql
But when I use php to execute it, I get a 0 Kb file, I wonder why. I tried both shell_exec and exec. Is there something wrong with the parameters?