From 69b8c609aa4d6e6d4003ca6044bf6e23384fca92 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Tue, 14 May 2024 21:36:07 +0800 Subject: [PATCH] Update index.py --- plugins/mysql/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mysql/index.py b/plugins/mysql/index.py index 4eb5fb60f..a41063f9d 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 --master-data=1 --skip-opt --create-options --default-character-set=utf8 -h" + ip + " -P" + \ + dump_sql_data = getServerDir() + "/bin/mysqldump " + dmp_option + " --single-transaction --dump-slave=1 --skip-opt --create-options --default-character-set=utf8 -h" + ip + " -P" + \ port + " -u" + user + " -p'" + apass + "' --ssl-mode=DISABLED " + sync_db + " > " + bak_file print(dump_sql_data) mw.execShell(dump_sql_data)