FIX: mysql dump

This commit is contained in:
Tony Air 2022-02-09 22:56:11 +02:00
parent c0087a6357
commit f943144b5c
1 changed files with 2 additions and 2 deletions

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);
}
}