From 3654d90b6314f3a036e200c6f08d5edce37c3ec8 Mon Sep 17 00:00:00 2001 From: Daniel Neto Date: Sat, 18 May 2024 22:07:37 -0300 Subject: [PATCH] Update --- install/mysqlDump.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install/mysqlDump.php b/install/mysqlDump.php index 321739ad50..a1b1b6c7f9 100644 --- a/install/mysqlDump.php +++ b/install/mysqlDump.php @@ -37,7 +37,7 @@ if(empty($mysqlPort)){ } // Use the mysqldump command to get the database dump -$dumpCommand = "mysqldump --host=$mysqlHost --port=$mysqlPort --user=$mysqlUser --password=$mysqlPass " +$dumpCommand = "mysqldump --host=$mysqlHost --port=$mysqlPort --user='$mysqlUser' --password='$mysqlPass' " . "--default-character-set=utf8mb4 $mysqlDatabase $tableList > {$file}"; // Execute the command @@ -45,6 +45,7 @@ system($dumpCommand, $output); // Check the result if ($output !== 0) { + echo $dumpCommand.PHP_EOL; die("Error occurred while taking the database dump."); }