Last active
August 29, 2015 14:04
-
-
Save grzegorzblaszczyk/52fa65a400cef8dd36bf to your computer and use it in GitHub Desktop.
Create database with UTF-8 collation
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 [database] DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci; | |
CREATE USER [user] IDENTIFIED BY '[pass]'; | |
CREATE USER [user]@'localhost' IDENTIFIED BY '[pass]'; | |
GRANT ALL PRIVILEGES ON [database].* TO [user]; | |
GRANT ALL PRIVILEGES ON [database].* TO '[user]'@'localhost'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment