Last active
August 29, 2015 14:09
-
-
Save jonalvarezz/5ad9c3ffadb195e6bbb3 to your computer and use it in GitHub Desktop.
Create new DB and DB 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
# DB | |
CREATE DATABASE wordpress; | |
# User | |
CREATE USER wordpressuser@localhost; | |
# User -> DB | |
SET PASSWORD FOR wordpressuser@localhost= PASSWORD("password"); | |
GRANT ALL PRIVILEGES ON wordpress.* TO wordpressuser@localhost IDENTIFIED BY 'password'; | |
# Apply | |
FLUSH PRIVILEGES; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment