Update index.py

pull/613/head
Mr Chen 10 months ago
parent 22526d5255
commit 8067c20e5a
  1. 6
      plugins/mysql-apt/index.py

@ -2006,15 +2006,15 @@ def setDbSlave(version):
def getMasterStatus(version=''):
if status(version) == 'stop':
return mw.returnJson(False, 'MySQL未启动,或正在启动中...!', [])
query_status_cmd = 'show slave status'
mdb8 = getMdb8Ver()
if mw.inArray(mdb8, version):
query_status_cmd = 'show replica status'
try:
if status(version) == 'stop':
return mw.returnJson(False, 'MySQL未启动,或正在启动中...!', [])
conf = getConf()
content = mw.readFile(conf)
master_status = False

Loading…
Cancel
Save