-
-
Save YourFriendCaspian/a0e531d2f71191f7802f2f35a4ac3b5a to your computer and use it in GitHub Desktop.
Create mysql user with specific permissions
This file contains hidden or 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
CREATE USER '<username>'@'%' IDENTIFIED BY '<password>'; | |
# ALL PRIVILEGES is everything except grant | |
GRANT ALL PRIVILEGES ON <database_name>.* TO '<username>'@'%'; | |
GRANT SELECT ON <database_name>.* TO '<username>'@'%'; | |
GRANT SELECT ON <database_name>.* TO '<username>'@'%'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment