Skip to content

Instantly share code, notes, and snippets.

@kelsin
Created July 14, 2012 21:41
Show Gist options
  • Save kelsin/3113535 to your computer and use it in GitHub Desktop.
Save kelsin/3113535 to your computer and use it in GitHub Desktop.
Creating a new Mysql DB
-- First create the database
create database new_database;
-- Then give all privs to the correct user
grant all on new_database.* to username@localhost;
-- Or with privs written out
grant select, insert, update, delete, create, drop, references, index, alter, create temporary tables, lock tables, execute, create view, show view, create routine, alter routine on new_database.* to username@localhost;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment