diff --git a/plugins/mysql/index.py b/plugins/mysql/index.py index 1d4d5a8e1..bb1dfb1cd 100755 --- a/plugins/mysql/index.py +++ b/plugins/mysql/index.py @@ -3341,7 +3341,9 @@ def doFullSyncUser(version=''): # --master-data=1 if not os.path.exists(bak_file): # 不锁表导出 - dump_sql_data = getServerDir() + "/bin/mysqldump " + dmp_option + " --single-transaction --master-data=1 --apply-slave-statements --include-master-host-port --compress -E -R -q -c --default-character-set=utf8mb4 -h" + ip + " -P" + \ + dmp_option += "--master-data=1 --apply-slave-statements --include-master-host-port --compress -E -R -q -c --default-character-set=utf8mb4" + + dump_sql_data = getServerDir() + "/bin/mysqldump --single-transaction " + 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()