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
KEY `lang` (`language_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8‘ at line 5
解决办法是打开要导入的文件在里面搜索 BTREE 找到如下内容:
修改为
或者直接删除USING BTREE
原因是mysql数据库文件版本不合。
PRIMARY KEY (`search`) USING BTREE,
PRIMARY KEY (`search`) USING BTREE (`search`),
原因是mysql数据库文件版本不合。
server version for the right syntax to use near 'USING BTREE 数据库文件版本不合导致的错误