FIX Solve backup when using mysqldump that return warning
This commit is contained in:
parent
629af89986
commit
1c59721294
@ -269,7 +269,7 @@ class Utils
|
||||
$i++; // output line number
|
||||
$read = fgets($handlein);
|
||||
// Exclude warning line we don't want
|
||||
if ($i == 1 && preg_match('/'.preg_quote('Warning\*Using a password').'/i', $read)) continue;
|
||||
if ($i == 1 && preg_match('/Warning.*Using a password/i', $read)) continue;
|
||||
fwrite($handle,$read);
|
||||
if (preg_match('/'.preg_quote('-- Dump completed').'/i',$read)) $ok=1;
|
||||
elseif (preg_match('/'.preg_quote('SET SQL_NOTES=@OLD_SQL_NOTES').'/i',$read)) $ok=1;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user