Skip to content

Instantly share code, notes, and snippets.

@ReekenX
Created March 20, 2012 15:11
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 ReekenX/2136768 to your computer and use it in GitHub Desktop.
Save ReekenX/2136768 to your computer and use it in GitHub Desktop.
Mysql: Grant access to single database
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER, LOCK TABLES, INDEX ON db_name.* TO db_username@localhost IDENTIFIED BY 'super duper secret password';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment