From ce0c2fb9ea4669f30660852c23990f2b55073014 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Mon, 5 Feb 2024 00:22:00 +0800 Subject: [PATCH] Update index.py --- plugins/mysql/index.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/mysql/index.py b/plugins/mysql/index.py index cae6ad9b3..e512c47ea 100755 --- a/plugins/mysql/index.py +++ b/plugins/mysql/index.py @@ -2955,11 +2955,14 @@ def doFullSyncUser(version=''): if mode == 'gtid': dmp_option = ' --set-gtid-purged=off ' + time.sleep(1) writeDbSyncStatus({'code': 1, 'msg': '正在停止从库...', 'progress': 15}) if version == '8.0': db.query("stop slave user='{}' password='{}';".format(user, apass)) else: db.query("stop slave") + + time.sleep(2) writeDbSyncStatus({'code': 2, 'msg': '远程导出数据...', 'progress': 20})