diff --git a/plugins/mysql/index.py b/plugins/mysql/index.py index cb5912dc0..f88cf9c6d 100755 --- a/plugins/mysql/index.py +++ b/plugins/mysql/index.py @@ -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: