check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYP
2018-02-14 16:03
465 查看
创建QUARTZ表时出现如下的问题
CREATE TABLE QRTZ_JOB_DETAILS(
JOB_NAME VARCHAR(80) NOT NULL,
JOB_GROUP VARCHAR(80) NOT NULL,
DESCRIPTION VARCHAR(120) NULL,
JOB_CLASS_NAME VARCHAR(128) NOT NULL,
IS_DURABLE VARCHAR(1) NOT NULL,
IS_VOLATILE VARCHAR(1) NOT NULL,
IS_STATEFUL VARCHAR(1) NOT NULL,
REQUESTS_RECOVERY VARCHAR(1) NOT NULL,
JOB_DATA BLOB NULL,
PRIMARY KEY (JOB_NAME,JOB_GROUP))
TYPE=InnoDB
Error occured at:2018-02-14 15:43:16
Line no.:32
Error Code: 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘TYPE=InnoDB’ at line 12
通过查询得知mysql版本的问题,在MySQL5.0以前,type=InnoDB是有效的SQL语句,但是自己用的是MySQL5.6版本,type=InnoDB不再有效了。
可将这语句删除,再执行。
也可以改成 : ENGINE=InnoDB
注:这里表会采用默认引擎,MySQL5.5.5版本之后采用的默认引擎就是InnoDB
CREATE TABLE QRTZ_JOB_DETAILS(
JOB_NAME VARCHAR(80) NOT NULL,
JOB_GROUP VARCHAR(80) NOT NULL,
DESCRIPTION VARCHAR(120) NULL,
JOB_CLASS_NAME VARCHAR(128) NOT NULL,
IS_DURABLE VARCHAR(1) NOT NULL,
IS_VOLATILE VARCHAR(1) NOT NULL,
IS_STATEFUL VARCHAR(1) NOT NULL,
REQUESTS_RECOVERY VARCHAR(1) NOT NULL,
JOB_DATA BLOB NULL,
PRIMARY KEY (JOB_NAME,JOB_GROUP))
TYPE=InnoDB
Error occured at:2018-02-14 15:43:16
Line no.:32
Error Code: 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘TYPE=InnoDB’ at line 12
通过查询得知mysql版本的问题,在MySQL5.0以前,type=InnoDB是有效的SQL语句,但是自己用的是MySQL5.6版本,type=InnoDB不再有效了。
可将这语句删除,再执行。
也可以改成 : ENGINE=InnoDB
注:这里表会采用默认引擎,MySQL5.5.5版本之后采用的默认引擎就是InnoDB
相关文章推荐
- 异常“check the manual that corresponds to your MySQL server version for the right syntax to use near ”
- check the manual that corresponds to your MySQL server version for the right syntax to use near‘XXX’
- check the manual that corresponds to your MySQL server version for the right syntax to use near 'cre
- 插入mysql语句报错:1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near
- check the manual that corresponds to your MySQL server version for the right syntax to use near 'lim
- check the manual that corresponds to your MySQL server version for the right syntax to use near 'oiw
- MySql 执行语句错误 Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near
- check the manual that corresponds to your MySQL server version for the right syntax to use near 'USI
- check the manual that corresponds to your MySQL server version for the right syntax to use near '..'
- check the manual that corresponds to your MySQL server version for the right syntax to use near
- 关于check the manual that corresponds to your MySQL server version for the right syntax to use near
- check the manual that corresponds to your MySQL server version for the right syntax to use near '?,?
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near
- CHECK the manual that corresponds TO your MySQL SERVER VERSION FOR the RIGHT syntax TO USE near.....
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use
- ”check the manual that corresponds to your MySQL server version for the right syntax to use“解决
- "check the manual that corresponds to your MySQL server version for the right syntax to use“解决
- heck the manual that corresponds to your MySQL server version for the right syntax to use near 'OPTI
- check the manual that corresponds to your MySQL server version for the right syntax的错误解析
- MySQL check the manual that corresponds to your MySQL server version for the right syntax错误