Magento Import Database prompt error 1064 (42000) at

Source: Internet
Author: User
Tags import database mysql database

Another error occurred in the Magento Guide database:

A similar error occurred during the execution of the restored database or SQL statement:
C:mysqlbin>mysql Sq_zgzk < 1.sql-u root

Error 1064 (42000) at line 382:you have a error in your SQL syntax; Check the manual that corresponds to your MySQL server version for the right syntax to use near ' USING
KEY ' fk_attribute_varchar_entity ' (' entity_id '),
KEY ' Fk_catalo ' at line 9

The solution is to search

The code is as follows Copy Code

UNIQUE KEY ' idx_base ' (' entity_type_id ', ' entity_id ', ' attribute_id ', ' store_id ') USING btree

Replaced by

UNIQUE KEY ' idx_base ' USING btree (' entity_type_id ', ' entity_id ', ' attribute_id ', ' store_id ')

Re-import problem resolution.


If the above solution can not solve, you are from the high version to the lower version of the import we can try the following methods to solve

Reason: Because a high version of the SQL statement was imported in a lower version, it is possible to run in MYSQL4.02 with statements in the MYSQL4.1 version

Import between different versions.

Workaround: Upgrade the MySQL database to the corresponding version

Or:

The code is as follows Copy Code

Program code
Engine=myisam DEFAULT charset=latin1

or program code
Engine=innodb DEFAULT charset=latin1

Replace all with program code

The code is as follows Copy Code
Engine=myisam

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.