From 7e4b69d272b9e7e03ceb5c66804d15c07023d764 Mon Sep 17 00:00:00 2001 From: Romain Quetiez Date: Mon, 19 Aug 2013 15:16:32 +0000 Subject: [PATCH] Improved the error reporting for the backup (in case mysqldump fails with a single error, then the error is displayed directly) SVN:trunk[2825] --- setup/backup.class.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/backup.class.inc.php b/setup/backup.class.inc.php index 6eb4ad880..f53b56de4 100644 --- a/setup/backup.class.inc.php +++ b/setup/backup.class.inc.php @@ -207,7 +207,7 @@ class DBBackup } // Delete the file created by tempnam() so that the spawned process can write into it (Windows/IIS) unlink($sBackupFileName); - $sCommand = "$sMySQLDump --opt --default-character-set=utf8 --add-drop-database --single-transaction --host=$sHost $sPortOption --user=xx$sUser --password=$sPwd --result-file=$sTmpFileName $sDBName $sTables 2>&1"; + $sCommand = "$sMySQLDump --opt --default-character-set=utf8 --add-drop-database --single-transaction --host=$sHost $sPortOption --user=$sUser --password=$sPwd --result-file=$sTmpFileName $sDBName $sTables 2>&1"; $sCommandDisplay = "$sMySQLDump --opt --default-character-set=utf8 --add-drop-database --single-transaction --host=$sHost $sPortOption --user=xxxxx --password=xxxxx --result-file=$sTmpFileName $sDBName $sTables"; // Now run the command for real