From 454b03690803fe7a2f72fbe7fec40aef65b3164f Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Wed, 15 May 2024 20:00:01 +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 8f9fa59e4..8313dc2e7 100755 --- a/plugins/mysql/index.py +++ b/plugins/mysql/index.py @@ -3326,10 +3326,10 @@ def doFullSyncUser(version=''): 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") + # if version == '8.0': + # db.query("stop slave user='{}' password='{}';".format(user, apass)) + # else: + # db.query("stop slave") time.sleep(2)