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:
@@ -1461,7 +1461,7 @@ def addMasterRepSlaveUser(version=''):
|
||||
return mw.returnJson(False, '用户已存在!')
|
||||
|
||||
result = pdb.execute("GRANT REPLICATION SLAVE ON *.* TO '" +
|
||||
username + "'@'%' identified by '" + password + "'")
|
||||
username + "'@'%' identified by '" + password + "';FLUSH PRIVILEGES;")
|
||||
# print result
|
||||
isError = isSqlError(result)
|
||||
if isError != None:
|
||||
|
||||
Reference in New Issue
Block a user