Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1079459
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T21:52:23+00:00 2026-05-16T21:52:23+00:00

I have a mysql database I have downloaded from my online server and trying

  • 0

I have a mysql database I have downloaded from my online server and trying to import on my local mysql but its not working showing this syntax error. I cannot find any errors in this query

This is the error:

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 idx_p_id (p_id) USING BTREE,
KEY ‘ at line 27

and this is my query:

  PRIMARY KEY (`a_id`),
  UNIQUE KEY `idx_a_id` (`a_id`) USING BTREE,
  KEY `idx_p_id` (`p_id`) USING BTREE,
  KEY `idx_m_id` (`m_id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T21:52:23+00:00Added an answer on May 16, 2026 at 9:52 pm

    Your mysql server version is older and not compatible with the one where the dump was created.
    Try to upgrade your mysql server or to export the dump using the --compatible option of mysqldump.

    You probably need this:

    mysqldump --compatible=mysql40 ...
    

    You also have the option to import the dump to a newer server which you can create locally and re-export there using the comopatible option.

    I have also seen people search and replacing stuff in their mysql dump files but this is an ugly approach, but might work for you if you have just this incompatibility.

    also format your text a little bit and accept some answers if you want people to help you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have downloaded whole database from geonames.org and imported all countries into mysql. i
I have been trying to migrate a database from Sybase to MySQL. This is
I am connecting an online MySQL database. I have downloaded MySQL ODBC Connector 5.1.
i'm trying to use geonames database (downloaded and loaded on a local mysql) to
I'm trying to connect to the MySql database from a Java servlet. I'm working
I have mysql database structure like below: CREATE TABLE test ( id int(11) NOT
I have a fairly small MySQL database (a Textpattern install) on a server that
I am new to wordpress... I have downloaded complete wordpress project from my online
I am Trying to connect mysql to vc++ from last 7 days. But nobody
I have downloaded the MySQL 5.2.5.1 version. I need to create the database and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.