Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@mrchilds
Created July 23, 2012 15:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrchilds/3164367 to your computer and use it in GitHub Desktop.
Save mrchilds/3164367 to your computer and use it in GitHub Desktop.
Mysql - Add New User With Specific DB Permissions
#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