Last active
August 29, 2015 14:10
-
-
Save aoberoi/90609e9656598c2f5d85 to your computer and use it in GitHub Desktop.
MySQL User Creation with Databse
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
# See: http://stackoverflow.com/a/1720254 | |
CREATE USER 'user1'@'localhost' IDENTIFIED BY 'password'; | |
CREATE DATABASE db_database1; | |
GRANT ALL PRIVILEGES ON db_database1.* To 'user1'@'localhost' IDENTIFIED BY 'password'; | |
FLUSH PRIVILEGES; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment