1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +02:00
This commit is contained in:
Daniel Neto 2024-05-18 22:07:37 -03:00
parent c1641b4786
commit 3654d90b63

View file

@ -37,7 +37,7 @@ if(empty($mysqlPort)){
} }
// Use the mysqldump command to get the database dump // 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}"; . "--default-character-set=utf8mb4 $mysqlDatabase $tableList > {$file}";
// Execute the command // Execute the command
@ -45,6 +45,7 @@ system($dumpCommand, $output);
// Check the result // Check the result
if ($output !== 0) { if ($output !== 0) {
echo $dumpCommand.PHP_EOL;
die("Error occurred while taking the database dump."); die("Error occurred while taking the database dump.");
} }