MySQL
2017-03-14 本文已影响13人
iHelin
1. 唯一约束的字段可以为空(只能有一个空值)
2. 新建用户,并给用户赋权限
CREATE USER 'ihelin'@'%' IDENTIFIED BY '123456';
-- 所有权限
GRANT ALL ON *.* TO 'ihelin'@'%';
-- 特定权限
GRANT SELECT, INSERT ON testdb.testTable TO 'pig'@'%';
CREATE USER 'ihelin'@'%' IDENTIFIED BY '123456';
-- 所有权限
GRANT ALL ON *.* TO 'ihelin'@'%';
-- 特定权限
GRANT SELECT, INSERT ON testdb.testTable TO 'pig'@'%';