您的位置:首页 > 数据库 > MySQL

MySQL server version for the right syntax to use near ‘USING BTREE

2013-07-11 23:12 513 查看
转自:http://www.douban.com/note/157818842/

有时导入mysql会提示如下错误:

C:\Users\liqiang>mysql -uroot -paaaaaa guangxi <e:\data\ticai.sql
ERROR 1064 (42000) at line 486: 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 'USING BTREE,
KEY `Reference_1_FK` (`RoleID`),
CONSTRAINT `FK_userinfo_RoleID' at line 11


解决办法是打开要导入的文件在里面搜索 BTREE 找到如下内容:
KEY `columnCindex` (`columnC`) USING BTREE
修改为
KEY `columnCindex` USING BTREE (`columnC`)
然后就可以顺利通过了
-------------------------------------------
主要的问题是,数据库sql文件版本不合
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐