Created
July 14, 2012 21:41
-
-
Save kelsin/3113535 to your computer and use it in GitHub Desktop.
Creating a new Mysql DB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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