فهرست منبع

Improved the error reporting for the backup (in case mysqldump fails with a single error, then the error is displayed directly)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2825 a333f486-631f-4898-b8df-5754b55c2be0
romainq 11 سال پیش
والد
کامیت
06ef0f414e
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      setup/backup.class.inc.php

+ 1 - 1
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)
 		// Delete the file created by tempnam() so that the spawned process can write into it (Windows/IIS)
 		unlink($sBackupFileName);
 		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";
 		$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
 		// Now run the command for real