Skip to content

Instantly share code, notes, and snippets.

@epicserve
Created August 12, 2010 00:37
Show Gist options
  • Save epicserve/520088 to your computer and use it in GitHub Desktop.
Save epicserve/520088 to your computer and use it in GitHub Desktop.

#MySQL Notes

Administration

Create a database

create database <db_name>

Create a user with usage to Mysql

grant usage on *.* to <user>@localhost identified by '<password>';

Grant all privileges to a user for a certain database

grant all privileges on <db_name>.* to <user>@localhost;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment