Last active
August 29, 2015 13:56
-
-
Save python-consulting/8861203 to your computer and use it in GitHub Desktop.
SQL Database + User creation
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
# Database name : db_name | |
# Password : db_pwd | |
CREATE DATABASE db_name; | |
ALTER DATABASE db_name CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; | |
GRANT ALL ON db_name.* TO 'db_name_user'@'localhost' IDENTIFIED BY 'db_pwd'; | |
FLUSH PRIVILEGES; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment