Last active
December 12, 2015 09:39
-
-
Save laszlomiklosik/4753324 to your computer and use it in GitHub Desktop.
mysql: connect, create user and database
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
sudo mysql --user=root mysql --password | |
CREATE DATABASE your_db DEFAULT CHARACTER SET utf8; | |
CREATE USER 'your_user'@'%' IDENTIFIED BY 'your_pass'; | |
GRANT ALL PRIVILEGES ON your_db.* TO 'your_user'@'%'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment