mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
Update
This commit is contained in:
parent
c1641b4786
commit
3654d90b63
1 changed files with 2 additions and 1 deletions
|
@ -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.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue