标签:对象 数据库 innodb arc general amp cte char oca
CREATE DATABASE testdb CHARACTER SET utf8 COLLATE utf8_general_ci;
CREATE TABLE mytable(
id varchar(40) NOT NULL default ‘‘,
userId varchar(40) NOT NULL default ‘‘
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
grant 权限 on 数据库对象 to 用户
grant select, insert, update, delete on testdb.* to user@‘%‘
普通dba权限
grant all privileges on testdb to user@‘localhost‘
高级dba权限
grant all on *.* to user@‘localhost‘
标签:对象 数据库 innodb arc general amp cte char oca
原文地址:https://www.cnblogs.com/zhouyujiang/p/10201821.html