Skip to content

Instantly share code, notes, and snippets.

@putnamhill
Last active September 29, 2016 11:45
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 putnamhill/5808307 to your computer and use it in GitHub Desktop.
Save putnamhill/5808307 to your computer and use it in GitHub Desktop.
Creating a new user with the mysql client and set some privileges for all the tables of a database.
CREATE USER 'someuser'@'localhost' IDENTIFIED BY 'cleartext-password';
GRANT SELECT,INSERT,UPDATE,DELETE ON `database`.* TO 'someuser'@'localhost';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment