diff --git a/plugins/mysql/index.py b/plugins/mysql/index.py index 5811ef91c..5c015c873 100755 --- a/plugins/mysql/index.py +++ b/plugins/mysql/index.py @@ -3106,7 +3106,7 @@ def doFullSyncUser(version=''): # --force --opt --single-transaction if not os.path.exists(bak_file): # 不锁表导出 - dump_sql_data = getServerDir() + "/bin/mysqldump " + dmp_option + " --single-transaction -q -R --skip-opt --create-options --default-character-set=utf8 -h" + ip + " -P" + \ + dump_sql_data = getServerDir() + "/bin/mysqldump " + dmp_option + " --single-transaction -q -R --skip-opt --create-options --default-character-set=utf8mb4 -h" + ip + " -P" + \ port + " -u" + user + " -p'" + apass + "' --ssl-mode=DISABLED " + sync_db + " > " + bak_file print(dump_sql_data) mw.execShell(dump_sql_data)