add FLUSH PRIVILIGES

This commit is contained in:
Usman Nasir
2020-07-17 01:18:02 +05:00
parent 7c67993655
commit fb670c81e8

View File

@@ -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()