yehster wrote on Wednesday, January 04, 2012:
The mysqldump created by interface/main/backup.php does not specify a host, so it can only work if php and mysql are on the same machine.
// The substitutions below use perl because sed's not usually on windows systems.
$perl = $PERL_PATH . DIRECTORY_SEPARATOR . 'perl';
$cmd = "$mysql_dump_cmd -u " . escapeshellarg($sqlconf["login"]) .
" -p" . escapeshellarg($sqlconf["pass"]) .
" --opt --quote-names " .
escapeshellarg($sqlconf["dbase"]) . " $tables" .
" | $perl -pe 's/ DEFAULT CHARSET=utf8//i; s/ collate[ =][^ ;,]*//i;'" .
" > $EXPORT_FILE;";