Last active
April 4, 2019 13:16
-
-
Save karrikas/147c98bb329e46695565cfea3f78af54 to your computer and use it in GitHub Desktop.
Create new database and new user in mysql
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 database; | |
CREATE USER user@localhost IDENTIFIED BY 'password'; | |
GRANT ALL PRIVILEGES ON database.* TO user@localhost; | |
FLUSH PRIVILEGES; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment