FIX: mysql dump

This commit is contained in:
Tony Air 2022-02-09 23:01:05 +02:00
parent 8c8e243efd
commit cd2e8eb836

View File

@ -22,7 +22,7 @@ class DumpMySQL extends BuildTask
}*/
//header('Content-Disposition: attachment; filename="backup-'.date('d-m-Y').'.sql"');
$dump = passthru('mysqldump -u '.$cfg['username'].' --password="'.$cfg['password'].'" '.$cfg['database'], true);
$dump = exec('mysqldump -u '.$cfg['username'].' --password="'.$cfg['password'].'" '.$cfg['database']);
var_dump($dump);
exit(0);