Created
August 1, 2018 13:03
-
-
Save karrikas/2c516ff21b34e17f1f3b7390dab7c280 to your computer and use it in GitHub Desktop.
Mysql - Create database and its user;
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 'my_db'; | |
CREATE USER 'my_user'@'localhost' IDENTIFIED BY 'my_pass'; | |
GRANT ALL PRIVILEGES ON my_db.* TO 'my_user'@'localhost'; | |
FLUSH PRIVILEGES; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment