mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update index.py
This commit is contained in:
@@ -2858,7 +2858,10 @@ def initSlaveStatusSyncUser(version=''):
|
||||
# print(data)
|
||||
pdb = pMysqlDb()
|
||||
if len(slave_data) == 1:
|
||||
dlist = pdb.query('show slave status')
|
||||
cmd_slave = 'show slave status'
|
||||
if pk_version.parse(version) < pk_version.parse("8.0"):
|
||||
cmd_slave = 'SHOW REPLICA STATUS'
|
||||
dlist = pdb.query(cmd_slave)
|
||||
if len(dlist) > 0:
|
||||
return mw.returnJson(False, '已经初始化好了zz...')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user