From f5edd83164e571d192f0c4e4172482ee0a2d0247 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Thu, 16 May 2024 19:04:38 +0800 Subject: [PATCH] Update index.py --- plugins/mysql/index.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/mysql/index.py b/plugins/mysql/index.py index bb1dfb1cd..e03ec0e45 100755 --- a/plugins/mysql/index.py +++ b/plugins/mysql/index.py @@ -3341,9 +3341,9 @@ def doFullSyncUser(version=''): # --master-data=1 if not os.path.exists(bak_file): # 不锁表导出 - dmp_option += "--master-data=1 --apply-slave-statements --include-master-host-port --compress -E -R -q -c --default-character-set=utf8mb4" + dmp_option += "--master-data=1 --apply-slave-statements --include-master-host-port --compress -E -R -q -c " - dump_sql_data = getServerDir() + "/bin/mysqldump --single-transaction " + dmp_option + " -h" + ip + " -P" + \ + dump_sql_data = getServerDir() + "/bin/mysqldump --single-transaction --default-character-set=utf8mb4 " + dmp_option + " -h" + ip + " -P" + \ port + " -u" + user + " -p'" + apass + "' --ssl-mode=DISABLED " + sync_db + " > " + bak_file print(dump_sql_data) time_s = time.time()