Last active
December 15, 2015 12:28
-
-
Save mohitt/5260018 to your computer and use it in GitHub Desktop.
Create a Mysql db with user and grant permissions, replace ##DBNAME## with database name and ##DBUSER## with username and ##DBPASSWORD## with new user password
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 DATABASE IF NOT EXISTS ##DBNAME##; | |
GRANT ALL on ##DBNAME##.* to '##DBUSER##'@'%' identified by '##DBPASSWORD##'; | |
GRANT ALL on ##DBNAME##.* to '##DBUSER##'@'localhost' identified by '##DBPASSWORD##'; | |
USE ##DBNAME##; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment