Created
September 5, 2012 17:49
-
-
Save blasterpal/3641121 to your computer and use it in GitHub Desktop.
Create mysql user with specific permissions
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
CREATE USER 'joe'@'%' IDENTIFIED BY 'xxxxxx'; | |
# ALL PRIVILEGES is everything except grant | |
GRANT ALL PRIVILEGES ON APP_production_temp.* TO 'joe'@'%'; | |
GRANT SELECT ON APP_production.* TO 'joe'@'%'; | |
GRANT SELECT ON stats_production.* TO 'joe'@'%'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment