From a3bd0c6bda50423a8fdd567a8341a3e4f11d5ed0 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Wed, 15 May 2024 20:00:19 +0800 Subject: [PATCH] Update index.py --- plugins/mysql/index.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/mysql/index.py b/plugins/mysql/index.py index 8313dc2e7..8b4ce2fc1 100755 --- a/plugins/mysql/index.py +++ b/plugins/mysql/index.py @@ -3331,7 +3331,7 @@ def doFullSyncUser(version=''): # else: # db.query("stop slave") - time.sleep(2) + time.sleep(1) writeDbSyncStatus({'code': 2, 'msg': '远程导出数据...', 'progress': 20}) @@ -3384,7 +3384,7 @@ def doFullSyncUser(version=''): # print(r) r = db.query(cmd) print(r) - + if version == '8.0': db.query("start slave user='{}' password='{}';".format(user, apass)) else: