WordPress.org

Forums

SQL Error on importing database to MAMP (1 post)

  1. edharris
    Member
    Posted 1 year ago #

    I having problems importing the database from my live site to a local database in MAMP. When I try to import I get a SQL error, which is pasted below. I appreciate any suggestions. I assume there is something wrong with the database although the live site is running fine. I also tried a fresh install of WordPress on the local database I created and that works fine too.

    Here's the error message:

    There is a chance that you may have found a bug in the SQL parser. Please examine your query closely, and check that the quotes are correct and not mis-matched. Other possible failure causes may be that you are uploading a file with binary outside of a quoted text area. You can also try your query on the MySQL command line interface. The MySQL server error output below, if there is any, may also help you in diagnosing the problem. If you still have problems or if the parser fails where the command line interface succeeds, please reduce your SQL query input to the single query that causes problems, and submit a bug report with the data chunk in the CUT section below:
    ----BEGIN CUT----
    eNotzL0KwjAUhuH93ITfBYSQWNshW6ihCic/5lQHtyIOLh1cxLs3iuvLwxtqzdVhtBi34JAcDCys
    GUjm1jdE8S0nduh1r7uOzlKRRcFPIc0Kl9BQXG6I+Xpk9o0ZKtE77LTRA5VD+RqV5X/Afnm+Hiux
    T5PDfaXf/AMoGR/l
    ----END CUT----
    ----BEGIN RAW----

    ERROR: C1 C2 LEN: 0 1 106
    STR: 

    MySQL: 5.5.33
    USR OS, AGENT, VER: Mac MOZILLA 5.0
    PMA: 4.0.6
    PHP VER,OS: 5.5.3 Darwin
    LANG: en
    SQL:

    ----END RAW----

    SQL query:

    MySQL said: Documentation
    #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 '?' at line 1

Topic Closed

This topic has been closed to new replies.

About this Topic