Skip to content

Instantly share code, notes, and snippets.

@wakumaku
Created September 16, 2015 12:59
Show Gist options
  • Save wakumaku/78be33abad510867f1d6 to your computer and use it in GitHub Desktop.
Save wakumaku/78be33abad510867f1d6 to your computer and use it in GitHub Desktop.
[mysql] Create a new user and grant all privileges
CREATE USER 'user'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON * . * TO 'user'@'localhost';
FLUSH PRIVILEGES;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment