Skip to content

Instantly share code, notes, and snippets.

@jkullick
Last active July 29, 2016 12:02
Show Gist options
  • Select an option

  • Save jkullick/0e293647b65e0875ada7c41a9dd04f02 to your computer and use it in GitHub Desktop.

Select an option

Save jkullick/0e293647b65e0875ada7c41a9dd04f02 to your computer and use it in GitHub Desktop.
Create MySQL Database and User
CREATE DATABASE $DATABASE CHARACTER SET utf8 COLLATE utf8_general_ci;
CREATE USER $USER@localhost IDENTIFIED BY '$PASSWORD';
GRANT ALL PRIVILEGES ON $DATABASE.* TO $USER;
FLUSH PRIVILEGES;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment