From fb670c81e8bbbdbf14b6c40436a1ad7f768d12f4 Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Fri, 17 Jul 2020 01:18:02 +0500 Subject: [PATCH] add FLUSH PRIVILIGES --- plogical/mysqlUtilities.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plogical/mysqlUtilities.py b/plogical/mysqlUtilities.py index c67978e58..6e630bb89 100755 --- a/plogical/mysqlUtilities.py +++ b/plogical/mysqlUtilities.py @@ -805,6 +805,7 @@ password=%s cursor.execute("update db set Host='%s' where Db='%s'" % (remoteIP, dbName)) cursor.execute("update user set Host='%s' where user='%s'" % (remoteIP, userName)) + cursor.execute("FLUSH PRIVILIGES") connection.close()