Update index.py

pull/5/head
midoks 4 years ago
parent f9c9c91490
commit a2ee7c9092
  1. 3
      plugins/mysql/index.py

@ -1396,6 +1396,9 @@ def getMasterRepSlaveUserCmd(version):
db = pMysqlDb()
tmp = db.query('show master status')
if len(tmp) == 0:
return mw.returnJson(False, '未开启!')
sql = "CHANGE MASTER TO MASTER_HOST='" + ip + "', MASTER_PORT=" + port + ", MASTER_USER='" + \
clist[0]['username'] + "', MASTER_PASSWORD='" + \
clist[0]['password'] + \

Loading…
Cancel
Save