Created
June 7, 2018 20:04
-
-
Save carnar/b15a7d3c8d1059d67f22a4536e12aaac to your computer and use it in GitHub Desktop.
Create users in MySQL 5.7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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