diff --git a/install/mysqlUtilities.py b/install/mysqlUtilities.py index a44261303..38b846e5c 100755 --- a/install/mysqlUtilities.py +++ b/install/mysqlUtilities.py @@ -60,7 +60,7 @@ class mysqlUtilities: if mysqlData['mysqlhost'].find('rds.amazon') == -1: dropDB = "GRANT ALL PRIVILEGES ON " + dbname + ".* TO '" + dbuser + "'@'%s'" % (publicip) else: - dropDB = "GRANT SELECT, INSERT, DELETE ON " + dbname + ".* TO '" + dbuser + "'@'%s'" % (publicip) + dropDB = "GRANT CREATE, SELECT, INSERT, DELETE ON " + dbname + ".* TO '" + dbuser + "'@'%s'" % (publicip) else: dropDB = "GRANT ALL PRIVILEGES ON " + dbname + ".* TO '" + dbuser + "'@'localhost'" diff --git a/plogical/mysqlUtilities.py b/plogical/mysqlUtilities.py index 424544de6..c7c2c8f4f 100755 --- a/plogical/mysqlUtilities.py +++ b/plogical/mysqlUtilities.py @@ -155,7 +155,7 @@ class mysqlUtilities: if mysqlUtilities.RDS == 0: cursor.execute("GRANT ALL PRIVILEGES ON " + dbName + ".* TO '" + globalUser + "'@'%s'" % (mysqlUtilities.LOCALHOST)) else: - cursor.execute("GRANT SELECT, INSERT, DELETE ON " + dbName + ".* TO '" + globalUser + "'@'%s'" % ( + cursor.execute("GRANT CREATE, SELECT, INSERT, DELETE ON " + dbName + ".* TO '" + globalUser + "'@'%s'" % ( mysqlUtilities.LOCALHOST)) connection.close()