码迷,mamicode.com
首页 > 数据库 > 详细

mysql报错:MySQL server version for the right syntax to use near 'type=InnoDB'

时间:2015-07-25 23:05:16      阅读:147      评论:0      收藏:0      [点我收藏+]

标签:mysql   engine   

工作中使用sql语句建表时,mysql报了如下错误:

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 1


解决方案:

这个报错是由于某些版本的mysql不支持type写法,将type关键词改成ENGINE 即可。

版权声明:本文为博主原创文章,未经博主允许不得转载。

mysql报错:MySQL server version for the right syntax to use near 'type=InnoDB'

标签:mysql   engine   

原文地址:http://blog.csdn.net/u011250882/article/details/47060283

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!