转自:http://www.douban.com/note/157818842/
有时导入mysql会提示如下错误:
KEY `columnCindex` (`columnC`) USING BTREE
修改为
KEY `columnCindex` USING BTREE (`columnC`)
然后就可以顺利通过了
-------------------------------------------
主要的问题是,数据库sql文件版本不合
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文件版本不合
来源:https://www.cnblogs.com/tv151579/p/3185215.html