Skip to content

Instantly share code, notes, and snippets.

@jonalvarezz
Last active August 29, 2015 14:09
Show Gist options
  • Save jonalvarezz/5ad9c3ffadb195e6bbb3 to your computer and use it in GitHub Desktop.
Save jonalvarezz/5ad9c3ffadb195e6bbb3 to your computer and use it in GitHub Desktop.
Create new DB and DB User in MySQL
# 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