From f3b6708594d019a35acc7b1ac2beb2b41693f198 Mon Sep 17 00:00:00 2001 From: Claudio Maradonna Date: Sat, 31 Jul 2021 01:52:35 +0200 Subject: [PATCH] feature: add mysql script to GRANT and REVOKE privileges --- mysql/acl_restrictions.sql | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 mysql/acl_restrictions.sql diff --git a/mysql/acl_restrictions.sql b/mysql/acl_restrictions.sql new file mode 100644 index 0000000..574e5c7 --- /dev/null +++ b/mysql/acl_restrictions.sql @@ -0,0 +1,3 @@ +SHOW GRANTS FOR 'role'; +REVOKE ALL ON *.* FROM 'role'@'%'; +GRANT ALL ON ex_database.* TO 'role'@'%' WITH GRANT OPTION;