Update index.py

pull/522/head
Mr Chen 1 year ago
parent 36ad902250
commit ceacaaf7ae
  1. 8
      plugins/mysql/index.py

@ -2964,7 +2964,13 @@ def doFullSyncUser(version=''):
print(dump_sql_data)
mw.execShell(dump_sql_data)
writeDbSyncStatus({'code': 2, 'msg': '本地导入数据...', 'progress': 40})
writeDbSyncStatus({'code': 2, 'msg': '正在停止从库...', 'progress': 30})
if version == '8.0':
db.query("stop slave user='{}' password='{}';".format(user, apass))
else:
db.query("stop slave")
writeDbSyncStatus({'code': 3, 'msg': '正在到本地导入数据中...', 'progress': 40})
if os.path.exists(bak_file):
pwd = pSqliteDb('config').where('id=?', (1,)).getField('mysql_root')
sock = getSocketFile()

Loading…
Cancel
Save