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

我会带着你远行 2021-12-16 14:15 406阅读 0赞

转自:http://www.douban.com/note/157818842/

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

  1. C:\Users\liqiang>mysql -uroot -paaaaaa guangxi <e:\data\ticai.sql
  2. ERROR 1064 (42000) at line 486: You have an error in your SQL syntax; check the
  3. manual that corresponds to your MySQL server version for the right syntax to use
  4. near 'USING BTREE,
  5. KEY `Reference_1_FK` (`RoleID`),
  6. CONSTRAINT `FK_userinfo_RoleID' at line 11

解决办法是打开要导入的文件在里面搜索 BTREE 找到如下内容:
KEY `columnCindex` (`columnC`) USING BTREE
修改为
KEY `columnCindex` USING BTREE (`columnC`)
然后就可以顺利通过了
-—————————————————————
主要的问题是,数据库sql文件版本不合

发表评论

表情:
评论列表 (有 0 条评论,406人围观)

还没有评论,来说两句吧...

相关阅读