Skip to content

Instantly share code, notes, and snippets.

@amurrell
Last active April 20, 2016 00:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amurrell/508c809cf19f7e389300e6adda605e38 to your computer and use it in GitHub Desktop.
Save amurrell/508c809cf19f7e389300e6adda605e38 to your computer and use it in GitHub Desktop.
MySQL - Create user and database!
mysql -u root -p
CREATE DATABASE database_name;
GRANT ALL PRIVILEGES ON database_name.* TO 'database_user'@'%' IDENTIFIED BY 'database_user_pass';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment