mirror of
https://github.com/midoks/mdserver-web
synced 2026-11-04 19:16:00 +08:00
Update index.py
This commit is contained in:
@@ -2698,8 +2698,7 @@ def addMasterRepSlaveUser(version=''):
|
||||
if isError != None:
|
||||
return isError
|
||||
else:
|
||||
sql = "grant replication SLAVE ON *.* TO '" + username + \
|
||||
"'@'%' identified by '" + password + "';"
|
||||
sql = "grant replication SLAVE ON *.* TO '" + username + "'@'%' identified by '" + password + "';"
|
||||
result = pdb.execute(sql)
|
||||
isError = isSqlError(result)
|
||||
if isError != None:
|
||||
|
||||
Reference in New Issue
Block a user