mybatis-plus 使用
在本地MySQL建表语句:
CREATE TABLE user
(
id BIGINT(20) NOT NULL COMMENT ‘主键ID’,
name VARCHAR(30) NULL DEFAULT NULL COMMENT ‘姓名’,
age INT(11) NULL DEFAULT NULL COMMENT ‘年龄’,
email VARCHAR(50) NULL DEFAULT NULL COMMENT ‘邮箱’,
PRIMARY KEY (id)
)engine = innoDB auto_increment = 2 default charset = utf8;
报错:Storage engine ‘InnoDB’ does not support system tables. [mysql.user]
不要在mysql库下建表,新建一个库
库:mytatis_plus
表:user
文章讲述了在使用mybatis-plus时,尝试在MySQL的`mysql`库下创建表遇到InnoDB不支持系统表错误,解决方法是新建一个库如`mybatis_plus`,并在其中创建用户表user。
529

被折叠的 条评论
为什么被折叠?



