Commit d5d64826 authored by root's avatar root

added mysql dump utf8mb4

parent 37365626
......@@ -59,7 +59,7 @@ echo "finished\n";
function mysql_backup($host, $user, $password, $dbName, $tableName)
{
$cmd = "mysqldump -u $user -p$password -h $host $dbName $tableName --add-drop-table --add-drop-database --complete-insert --extended-insert=FALSE --single-transaction > pty_mysql_backup_all_table_{$dbName}.{$tableName}.sql";
$cmd = "mysqldump -u $user -p$password -h $host $dbName $tableName --default-character-set=utf8mb4 --add-drop-table --add-drop-database --complete-insert --extended-insert=FALSE --single-transaction > pty_mysql_backup_all_table_{$dbName}.{$tableName}.sql";
echo "{$cmd}\n";
system($cmd);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment