• 0

[PHP][MYSQL] mysqldump and system function


Question

Hey, having some problems with system fuction and mysqldump working -

$date = time();
$path = getcwd();
$path = str_replace("\\", "/", $path);
$backupfile = $path.'/backups/'.$date.'.sql.gz';

$command = "mysqldump -u $dbuser -p $dbpasswd -h $dbpasswd --routines --master-data --single-transaction  --skip-add-locks --skip-lock-tables --default-character-set=utf8 --compress $dbname > $backupfile";
system($command);

For some reason this wont produce anything and i cant see why? any ideas why?

Thanks, Tim

5 answers to this question

Recommended Posts

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.