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