Created
September 10, 2015 15:30
-
-
Save sword-jin/bdd3ca0bf9593a0c95c7 to your computer and use it in GitHub Desktop.
创建数据库,指定用户权限
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 IF NOT EXISTS table_name COLLATE utf8_general_ci; | |
CREATE USER 'username'@'host' IDENTIFIED BY 'password'; | |
GRANT SELECT, INSERT, UPDATE, DELETE ON table_name.* TO 'username'@'host'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
CREATE DATABASE kano DEFAULT CHARSET=utf8;
USE kano;
SOURCE kano.sql;