Support » Localhost Installs » SQL Error on importing database to MAMP

  • 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—-
    —-END CUT—-
    —-BEGIN RAW—-

    ERROR: C1 C2 LEN: 0 1 106

    MySQL: 5.5.33
    PMA: 4.0.6
    PHP VER,OS: 5.5.3 Darwin
    LANG: en

    —-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

  • The topic ‘SQL Error on importing database to MAMP’ is closed to new replies.