Skip to content

Instantly share code, notes, and snippets.

@sword-jin
Created September 10, 2015 15:30
Show Gist options
  • Save sword-jin/bdd3ca0bf9593a0c95c7 to your computer and use it in GitHub Desktop.
Save sword-jin/bdd3ca0bf9593a0c95c7 to your computer and use it in GitHub Desktop.
创建数据库,指定用户权限
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';
@weishio922
Copy link

CREATE DATABASE kano DEFAULT CHARSET=utf8;
USE kano;
SOURCE kano.sql;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment