FIX: mysql dump

This commit is contained in:
Tony Air 2022-02-09 22:57:33 +02:00
parent 7cf0f48e86
commit 8c8e243efd

View File

@ -16,10 +16,10 @@ class DumpMySQL extends BuildTask
{ {
$cfg = DB::getConfig(); $cfg = DB::getConfig();
try { /*try {
ob_clean(); ob_clean();
} catch (Exception $e) { } catch (Exception $e) {
} }*/
//header('Content-Disposition: attachment; filename="backup-'.date('d-m-Y').'.sql"'); //header('Content-Disposition: attachment; filename="backup-'.date('d-m-Y').'.sql"');
$dump = passthru('mysqldump -u '.$cfg['username'].' --password="'.$cfg['password'].'" '.$cfg['database'], true); $dump = passthru('mysqldump -u '.$cfg['username'].' --password="'.$cfg['password'].'" '.$cfg['database'], true);