首页 > 数据库技术 > 详细

server version for the right syntax to use near 'USING BTREE 数据库文件版本不合导致的错误

时间:2014-09-22 17:02:53      阅读:271      评论:0      收藏:0      [点我收藏+]
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 ‘USING BTREE,
  KEY `lang` (`language_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8‘ at line 5
 
解决办法是打开要导入的文件在里面搜索 BTREE 找到如下内容:
PRIMARY KEY (`search`) USING BTREE,
修改为
PRIMARY KEY (`search`) USING BTREE (`search`),
或者直接删除USING BTREE
原因是mysql数据库文件版本不合。

server version for the right syntax to use near 'USING BTREE 数据库文件版本不合导致的错误

原文:http://www.cnblogs.com/afish/p/3986205.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!