Right syntax to use near ' USING BTREE] engine=innodb DEFAULT Charset=utf8 ' at line 6

Source: Internet
Author: User
Tags mysql version

When you use Navicat for MySQL 10.0.10 to restore a database backup that is generated on a server to a local database, the following issues occur:

[ERR] 1064-you has an error in your SQL syntax; Check the manual that corresponds to your MySQL server version for the right syntax to use the USING BTREE

) Engine=innodb DEFAULT Charset=utf8 ' at line 6

View MySQL version: MySQL--version

Server database version: MySQL Ver 14.14 distrib 5.6.19, for Linux (x86_64) using Editline Wrapper

Local database version: MySQL Ver 14.12 distrib 5.0.37, for Win32 (IA32)

Presumably there may be incompatibilities between versions;

But before this operation is no problem, this time it is not!

After some troubleshooting, it is the index caused by the problem:

The problem is resolved by removing the index from the table, then backing it up, and then restoring it locally.

Right syntax to use near ' USING BTREE] engine=innodb DEFAULT Charset=utf8 ' at line 6

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.