Skip to content

Instantly share code, notes, and snippets.

@dustincurrie
Created December 21, 2010 22:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dustincurrie/750719 to your computer and use it in GitHub Desktop.
Save dustincurrie/750719 to your computer and use it in GitHub Desktop.
Create sql user and database
CREATE DATABASE databasename;
CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON databasename.* TO 'username'@'localhost';
FLUSH PRIVILEGES;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment