From 70f5218d33a10cbb779e5c585c0e7ffd5f35c545 Mon Sep 17 00:00:00 2001 From: midoks Date: Mon, 15 Feb 2021 21:12:22 +0800 Subject: [PATCH] Update index.py --- plugins/mysql/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: