From f29d10b0b99b7cd57d9feadb5447fbd80404e526 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Fri, 5 Jul 2024 11:38:43 +0800 Subject: [PATCH] Update index.py --- plugins/mysql/index.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/mysql/index.py b/plugins/mysql/index.py index 2f25d8909..7f8a49a3d 100755 --- a/plugins/mysql/index.py +++ b/plugins/mysql/index.py @@ -3494,10 +3494,10 @@ def doFullSyncUser(version=''): if not os.path.exists(bak_file): dmp_option += ' ' if mw.inArray(mdb8,version): - # --compression-algorithms - dmp_option += " --source-data=1 --apply-replica-statements --include-source-host-port " - else: - dmp_option += " --master-data=1 --apply-slave-statements --include-master-host-port --compress " + # --compression-algorithms + dmp_option += " --source-data=1 --apply-replica-statements --include-source-host-port " + else: + dmp_option += " --master-data=1 --apply-slave-statements --include-master-host-port --compress " dump_sql_data = getServerDir() + "/bin/mysqldump --single-transaction --default-character-set=utf8mb4 -q " + dmp_option + " -h" + ip + " -P" + \ port + " -u" + user + " -p'" + apass + "' --ssl-mode=DISABLED " + sync_db + " > " + bak_file