Update index.py

This commit is contained in:
midoks
2021-02-15 21:12:22 +08:00
parent 68034f5e26
commit 70f5218d33
+1 -1
View File
@@ -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: