Last active
April 10, 2019 07:45
-
-
Save tavy315/8862978f642f5f60dc02b492935b9645 to your computer and use it in GitHub Desktop.
Create a database and a username with permission on DB
This file contains hidden or 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 DATABASE db_name; | |
CREATE USER 'db_name'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'; | |
GRANT ALL ON db_name.* TO 'db_user'@'localhost'; | |
FLUSH PRIVILEGES; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment