magento数据库导入错误 - ERROR 1064 (42000) at line 382: 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 25 August 2011 10:04 Thursday by 小屋 分享收藏

magento导数据库又遇一个错误:

ERROR 1064 (42000) at line 382: 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 `FK_ATTRIBUTE_VARCHAR_ENTITY` (`entity_id`),
KEY `FK_CATALO' at line 9

解决办法是,搜索

UNIQUE KEY `IDX_BASE` (`entity_type_id`,`entity_id`,`attribute_id`,`store_id`) USING BTREE

替换为

UNIQUE KEY `IDX_BASE` USING BTREE (`entity_type_id`,`entity_id`,`attribute_id`,`store_id`)

重新导入问题解决。

 

小知识:

解决USING BTREE带来的错误的处理办法一般都是

UNIQUE KEY `field1` (`field2`) USING BTREE ,修改为

UNIQUE KEY `field1` USING BTREE  (`field2`) ,

即把USING BTREE 放到索引字段前面即可.

 

 

作者: Sjolzy

--EOF--

引用地址:

相关评论:

  1. gravatar face
    地球先生 9 月 12 日 对 “magento数据库导入错误 - ERROR 1064 (42000) at line 382: 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” 发表最新评论。
    学习了!

    学习了!

      评分:5

  2. 1
    地球先生 :

    学习了!

发表评论:

  给 “magento数据库导入错误 - ERROR 1064 (42000) at line 382: 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” 评分

广告、无意义的评论必删!