MySQL import error caused by USING BTREE

Source: Internet
Author: User
Tags mysql import

An error occurred while importing SQL scripts using mysql in the latest project.

MySQL import script command

Mysql-u username-p dbname <dbsql. SQL

Failed several attempts. As you are not familiar with the command line in Linux, try phpMyAdmin. the following error occurs when running the SQL script after installation:

ENGINE = InnoDB AUTO_INCREMENT = 72 default charset = utf8' at line 11

After asking Google, I thought it was an error caused by different default language styles in the version, so I changed the code

ENGINE = InnoDB COLLATE = 'utf8 _ general_ci'

After phpMyAdmin runs the SQL statement, an error still occurs. However, this time, the SQL statement exits at the Create Table position of a Table, and then compares the SQL statement of this Table with the SQL statement of other tables to find the USING BTREE, at this time, my reaction was caused by it. Run the SQL statements before and after the table separately. That's right !! This proves the previous ideas. Next, it's easy to look for using btree mysql. You will see many such examples. We don't know using btree before mysql 5.14. There are two solutions:

1. Directly Delete USING BTREE

2. enable compatibility mysqldump-compatible = mysql40 when exporting scripts

The following links about using btree:

Using btree mysql

Http://stackoverflow.com/questions/3767753/mysql-error-using-btree

About using btree Bug http://bugs.mysql.com/bug.php? Id = 25162

Source: http://www.radys.cn/archives/733.html

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.