From cd2e8eb836fc4525f6b99e82d6a391e9e9ac6357 Mon Sep 17 00:00:00 2001 From: Tony Air Date: Wed, 9 Feb 2022 23:01:05 +0200 Subject: [PATCH] FIX: mysql dump --- src/Tasks/DumpMySQL.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tasks/DumpMySQL.php b/src/Tasks/DumpMySQL.php index 8ada34a..53c4553 100755 --- a/src/Tasks/DumpMySQL.php +++ b/src/Tasks/DumpMySQL.php @@ -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);