Created
June 9, 2014 18:47
-
-
Save arielallon/31621e128d3e8dc12b5b to your computer and use it in GitHub Desktop.
MySQL create DB & assign a user
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 dbname; | |
| CREATE USER 'dbuser'@'%' IDENTIFIED BY 'password'; | |
| GRANT ALL PRIVILEGES ON dbname.* TO 'dbuser'@'%'; | |
| FLUSH PRIVILEGES; |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@'localhost' for localhost access