Skip to content

Instantly share code, notes, and snippets.

@carnar
Created June 7, 2018 20:04
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 carnar/b15a7d3c8d1059d67f22a4536e12aaac to your computer and use it in GitHub Desktop.
Save carnar/b15a7d3c8d1059d67f22a4536e12aaac to your computer and use it in GitHub Desktop.
Create users in MySQL 5.7
CREATE USER 'user'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
GRANT ALL ON database_name.* TO 'user'@'localhost';
FLUSH PRIVILEGES;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment