【问题标题】:MySQL Error Migrating WordPressMySQL 迁移 WordPress 时出错
【发布时间】:2014-06-20 10:22:14
【问题描述】:

我刚刚从旧服务器导出了我的 Wordpress 数据库并将其导入到新服务器。我使用的过程是我经常使用的通常的 PHPMyAdmin 过程,所以没有问题......

我收到此错误消息,但不确定它的含义。我的一些网站现在在新服务器上出现故障,我觉得这与它有关..

 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----
eNo1jL0KwyAYRQvZvqe4DyBSNSHgJiLJ4F817V5Chy7ZCs3bxxR6p8PlcFwpqWhYASvhXdQQkBCC
6tLujijs9eY1Bj5wpeheC1JlMJOLC8PDNSk8V9i5pOCadeWqpxyMRt94pDzn02Kpng3JxQj/3j5f
8iZOGq+NfnnqLv8djMMfvA==
----END CUT----
----BEGIN RAW----
ERROR: C1 C2 LEN: 1 2 11
STR: 

MySQL: 5.5.33
USR OS, AGENT, VER: Mac CHROME 5.0.34
PMA: 4.0.7
PHP VER,OS: 5.2.17 Linux
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 
[ Back ]

【问题讨论】:

    标签: php mysql database wordpress phpmyadmin


    【解决方案1】:

    在任何编辑器中打开您导出的文件并检查是否有任何特殊字符或任何换行符?有时特殊字符会停止导入过程。更多我建议检查phpmyadmin版本和mysql版本。或者您可以直接复制并粘贴到phpmyadmin中的sql选项卡,看看它是否给出任何错误。

    【讨论】:

      【解决方案2】:

      不确定你是否有 shell 访问权限,但我使用 mysqldump 可以避免编码问题。

      https://dev.mysql.com/doc/refman/5.1/en/mysqldump.html

      【讨论】:

        猜你喜欢
        • 2017-05-17
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2018-07-03
        • 1970-01-01
        • 2014-11-30
        • 2011-07-22
        • 1970-01-01
        相关资源
        最近更新 更多