Backup MySQL database on IIS
Hi guuys,
I have a simple script that backup the contents of a database and place the file on the server.
The problem is that this script works fine on my Apache server, but not on the IIS server.
Do I have to change the $command variable or the system function?
<?php
$backupFile = "../DBJobs_" . date("Y-m-d");
$command = "mysqldump --opt -h localhost -u (user) -p(password) dbjobs > $backupFile.sql";
system($command);
if ($command) {
$mess = "<p>Backup file created!</p>";
}
else {
$mess = "<p>There was a problem with the backup routine.</p>";
}
?>
Any help would be very appreciated.