FIX: mysql dump

This commit is contained in:
Tony Air 2022-02-09 22:56:11 +02:00
parent c0087a6357
commit f943144b5c

View File

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