Created
August 25, 2014 01:52
-
-
Save canujohann/66b9fab9f3b56e560d16 to your computer and use it in GitHub Desktop.
Create new user / DB in sql
This file contains hidden or 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
``` | |
CREATE DATABASE invoice; | |
CREATE USER 'invoice'@'localhost' IDENTIFIED BY 'invoice'; | |
GRANT ALL PRIVILEGES ON invoice . * TO 'invoice'@'localhost'; | |
FLUSH PRIVILEGES; | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment