Skip to content

Instantly share code, notes, and snippets.

@swr
Created September 24, 2009 23:53
Show Gist options
  • Save swr/193148 to your computer and use it in GitHub Desktop.
Save swr/193148 to your computer and use it in GitHub Desktop.
mysql db commands
mysql -u root -p
CREATE DATABASE databasename;
GRANT ALL PRIVILEGES ON databasename.* TO "wordpressusername"@"hostname" IDENTIFIED BY "password";
FLUSH PRIVILEGES;
EXIT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment