Created
July 23, 2012 15:56
-
-
Save mrchilds/3164367 to your computer and use it in GitHub Desktop.
Mysql - Add New User With Specific DB 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
#Connect to mysql command line... | |
$ mysql -u root -p | |
#Create user | |
$ create user USERNAME; | |
#Assign Permissions | |
$ grant PERMISSIONS on DATABASE.* to 'USERNAME'@'localhost' identified by 'PASSWORD'; | |
PERMISSIONS: | |
All | |
select | |
insert | |
delete |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment