From cf44889c741377ea2581621a673b30365733912c Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Tue, 14 May 2024 19:25: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 ba50dc89d..0d8510519 100755 --- a/plugins/mysql/index.py +++ b/plugins/mysql/index.py @@ -3104,9 +3104,12 @@ def doFullSyncUser(version=''): print(dump_sql_data) mw.execShell(dump_sql_data) + # 重置 + db.execute('reset master') writeDbSyncStatus({'code': 3, 'msg': '正在到本地导入数据中...', 'progress': 40}) if os.path.exists(bak_file): + pwd = pSqliteDb('config').where('id=?', (1,)).getField('mysql_root') sock = getSocketFile() my_import_cmd = getServerDir() + '/bin/mysql -S ' + sock + " -uroot -p'" + pwd + \