Skip to content

Instantly share code, notes, and snippets.

@ealden
Last active September 4, 2019 08:58
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 ealden/0563b52e10f5f6357a1c70dc25564e29 to your computer and use it in GitHub Desktop.
Save ealden/0563b52e10f5f6357a1c70dc25564e29 to your computer and use it in GitHub Desktop.
Create MySQL Database and User
CREATE DATABASE <database>;
CREATE USER '<user>'@'<host>' IDENTIFIED BY '<password>';
GRANT ALL PRIVILEGES ON <database>.* TO '<user>'@'<host>';
FLUSH PRIVILEGES;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment