Last active
November 8, 2022 19:48
-
-
Save gabidavila/9a506d0d3b15756a9f49c71fa4c7e38a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Grants access to all databases and tables to the role "dba" | |
GRANT ALL ON *.* TO 'dba'; | |
-- Grants access to the database "app" to the role "readonly" | |
GRANT SELECT ON app.* TO 'readonly'; | |
-- Grants access to the database "app" to the role "datawrite" | |
GRANT INSERT, UPDATE, DELETE ON app.* TO 'app_write'; | |
-- Grants access to developers | |
GRANT ALTER, DELETE, INDEX, INSERT, SELECT, UPDATE, CREATE VIEW, | |
SHOW VIEW, TRIGGER, CREATE TEMPORARY TABLES ON app.* TO 'developer'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment