Skip to content

Instantly share code, notes, and snippets.

@danielbachhuber
Created May 3, 2010 22:44
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 danielbachhuber/388678 to your computer and use it in GitHub Desktop.
Save danielbachhuber/388678 to your computer and use it in GitHub Desktop.
Create new MySQL database
CREATE DATABASE databasename;
GRANT ALL PRIVILEGES ON databasename.* TO username@localhost IDENTIFIED BY "password";
FLUSH PRIVILEGES;
EXIT;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment