Update index.py

This commit is contained in:
dami
2025-05-16 02:41:41 +08:00
parent 7c6b5bb200
commit 7eb729e809
+4 -1
View File
@@ -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...')