Created
June 21, 2014 21:50
-
-
Save tbaschak/dfda6ab444acadb9090d to your computer and use it in GitHub Desktop.
create a mysql user and database, and give all privileges
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
mysqladmin -uroot -p create DBNAME | |
mysql -uroot -p -e "GRANT ALL PRIVILEGES ON DBNAME.* To 'USER'@'localhost' IDENTIFIED BY 'PASSWORD';" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment