WordPress.org

Forums

Moving database error (6 posts)

  1. raker
    Member
    Posted 9 years ago #

    I'm moving my wordpress blog from one server to another, and I was following the instructions on the WordPress codex, but I came across this error message. Does anybody have any idea what's wrong?

    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----
    eNqdkM9y2yAQxu88xR5ylDBCtqtwU23F8YxsK0JNe4uRRWPN6F8Bx/Gz5ZBHyisUNHVPOYUBZufb
    3e/HkuT5LmewCGBBIU22DAKgEEZTxAurvyG0eOQMbtYVA/2nGYTSUuGmLvFwHLwXoDicAyVkNiGR
    3TZklLIggEa2t5C8DnCDNhf+kDKYYoLpzNdGdJVQFfrBc9hxD+JVsi08eEws72fdwTqBOSYo28TM
    2s/x1B8airL7zJV4O+6cQmwRad2dXlEab1cMZOfXuvejaHbrB2jkfby9+z7YZ24ucdVaY6vC8tQO
    yMovUum67/4DAicejRnYZHI+n9107UW4NtxJ45Lu3PfaMGj6g2iONnTSSnZSCeO8irqVDO5kCeSb
    5z5lDsIACRkJIdu4Yi6VBV/hDEJMQzyLXGqc76qPA5IrdSmMKIW23nt5OPbnp6rcjzl3+V9c6Ope
    iLKRoI06HcxJSfjdKzCjtn8WrdRPB2Hkc69qqf9Rl/kugyL+niawvoPk15oX/JPiv5/EpWE=
    ----END CUT----
    ----BEGIN RAW----

    ERROR: C1 C2 LEN: 1 2 384
    STR: »

    CVS: $Id: sqlparser.lib.php,v 2.36 2005/08/08 20:22:11 lem9 Exp $
    MySQL: 4.0.25-standard
    USR OS, AGENT, VER: Win IE 6.0
    PMA: 2.6.4-pl2
    PHP VER,OS: 4.3.11 Linux
    LANG: en-iso-8859-1
    SQL: -- phpMyAdmin SQL Dump
    -- version 2.6.4-pl1
    -- http://www.phpmyadmin.net
    --
    -- Host: localhost
    -- Generation Time: Feb 07, 2006 at 03:03 PM
    -- Server version: 3.23.58
    -- PHP Version: 4.3.10
    --
    -- Database: echow_db
    --

    -- --------------------------------------------------------

    --
    -- Table structure for table games_categories
    --

    DROP TABLE IF EXISTS games_categories
    ----END RAW----
    SQL query:

    -- phpMyAdmin SQL Dump -- version 2.6.4-pl1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Feb 07, 2006 at 03:03 PM -- Server version: 3.23.58 -- PHP Version: 4.3.10 -- -- Database: echow_db -- -- -------------------------------------------------------- -- -- Table structure for table games_categories -- DROP TABLE IF EXISTS games_categories
    MySQL said:

    #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 '-- phpMyAdmin SQL Dump
    -- version 2.6.4-pl1
    -- http://www.ph

  2. Mark (podz)
    Support Maven
    Posted 9 years ago #

    

    That's the problem.
    Open the .sql file in Notepad and look at the start. You'll see those three characters.
    Delete them. Save the File. Redo the import and all should be good.

  3. raker
    Member
    Posted 9 years ago #

    hmmm... I did a search for those three characters, and nothing came up in my .sql file.

  4. Mark (podz)
    Support Maven
    Posted 9 years ago #

    It's in 3 times - look in the code you pasted above.

  5. sk4sk4
    Member
    Posted 8 years ago #

    i'm havin the same problem with the same  error.

    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----
    eNqdkM+O2jAQxu9+ijnsMTZxQlDWtxRSFikhbJxuq14WA2bJKv/qmA3pq+2hj9RXqI1KK/VYy7ZG
    33ye34zjPM9yBnMKcw+SeM2Aggd+OEW8MPo7QvMnzuBudWDQf6s6oXqpSFXuSHfqnDfwiD8Dz3WD
    iRuabULmeYxSqGR9D/GlgzuUjvwxYTAlLvEC3GvRHIQ64Kp9QZ94Dhl3IFrG68KBp9gwP5cNpNnX
    VZJEEBAXbdKIGc6MTHFX+WjzsLE+J+O2pE+oi03nZXO+oCRaLxnIBpd9i8MwuMcUXdE/339gDKbj
    dIwOtalvVFic6w4Z+U2qvmybPwjPiietOzaZDMNgB61HYZ+RRmqbtOeh7TWDqt2L6mRCKy1lI5XQ
    tlZR1pJBKkZwfcf+zwyEBnfKaABRas1cKgO+we0olNDQZq4D/pXNhPQGXQgtdqI3pbfHy+n7cXh9
    fa7HnfnJ7dViL/yfC90ghdhVEnqtznt9VhKOrQJ91bZD97wXWr60qpT9b+QizzZQRB+SGFYfIf6y
    4gX/1/kLQ2+pYQ==
    ----END CUT----
    ----BEGIN RAW----

    ERROR: C1 C2 LEN: 1 2 384
    STR: »

    CVS: $Id: sqlparser.lib.php,v 2.36 2005/08/08 20:22:11 lem9 Exp $
    MySQL: 4.0.25-standard-log
    USR OS, AGENT, VER: Win MOZILLA 5.0
    PMA: 2.6.4-pl3
    PHP VER,OS: 4.3.10-2 Linux
    LANG: en-iso-8859-1
    SQL: -- phpMyAdmin SQL Dump
    -- version 2.6.4-pl2
    -- http://www.phpmyadmin.net
    --
    -- Host: localhost
    -- Generation Time: May 03, 2006 at 04:15 AM
    -- Server version: 4.1.18
    -- PHP Version: 4.3.11
    --
    -- Database: fxhzfwjj_myblog
    --

    -- --------------------------------------------------------

    --
    -- Table structure for table wp_categories
    --

    DROP TABLE IF EXISTS wp_categories

    ----END RAW----

    SQL query:

    -- phpMyAdmin SQL Dump -- version 2.6.4-pl2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: May 03, 2006 at 04:15 AM -- Server version: 4.1.18 -- PHP Version: 4.3.11 -- -- Database: fxhzfwjj_myblog -- -- -------------------------------------------------------- -- -- Table structure for table wp_categories -- DROP TABLE IF EXISTS wp_categories

    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 '-- phpMyAdmin SQL Dump
    -- version 2.6.4-pl2
    -- http://www.ph

    i did a search for the bad characters but none were to be found. anyone have any suggestions?

  6. sk4sk4
    Member
    Posted 8 years ago #

    when i look at the .sql file in notepad, the characters are not in the beginning of as it says they are in the error message. how can i get around this?

Topic Closed

This topic has been closed to new replies.

About this Topic