Merge pull request #285 from ceefour/patch-1

Fix: GRANT works for all MySQL/MariaDB variants
This commit is contained in:
VirtuBox
2020-08-19 11:53:58 +02:00
committed by GitHub

View File

@@ -219,7 +219,7 @@ def setupdatabase(self, data):
Log.debug(self, "Setting up user privileges")
try:
WOMysql.execute(self,
"grant all privileges on `{0}`.* to `{1}`@`{2}`"
"grant select, insert, update, delete, create, drop, references, index, alter, create temporary tables, lock tables, execute, create view, show view, create routine, alter routine, event, trigger on `{0}`.* to `{1}`@`{2}`"
.format(wo_db_name,
wo_db_username, wo_mysql_grant_host))
except StatementExcecutionError: