pull/518/head
Mr Chen 1 year ago
parent d1493ca13f
commit 9276e811c2
  1. 2
      plugins/mariadb/index.py
  2. 4
      plugins/mysql/index.py

@ -2672,6 +2672,8 @@ def doFullSyncUser(version=''):
ip = data['ip']
bak_file = '/tmp/tmp.sql'
if os.path.exists(bak_file):
os.system("rm -rf " + bak_file)
writeDbSyncStatus({'code': 0, 'msg': '开始同步...', 'progress': 0})
writeDbSyncStatus({'code': 1, 'msg': '远程导出数据...', 'progress': 10})

@ -196,7 +196,7 @@ def makeInitRsaKey(version=''):
datadir = getDataDir()
except Exception as e:
datadir = getServerDir() + "/data"
mysql_pem = datadir + "/mysql.pem"
if not os.path.exists(mysql_pem):
rdata = mw.execShell(
@ -2946,6 +2946,8 @@ def doFullSyncUser(version=''):
ip = data['ip']
bak_file = '/tmp/tmp.sql'
if os.path.exists(bak_file):
os.system("rm -rf " + bak_file)
writeDbSyncStatus({'code': 0, 'msg': '开始同步...', 'progress': 0})
dmp_option = ''

Loading…
Cancel
Save