php - MySQL 迁移 WordPress 时出错

标签 php mysql database wordpress phpmyadmin

我刚刚从旧服务器导出了 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 ]

最佳答案

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

关于php - MySQL 迁移 WordPress 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23450064/

相关文章:

mysql - 用 MySQL 修剪逗号?

php - Eloquent 获取与模型 X 关联的所有模型

php - 反引号 `` 叫什么?

php - 如果选择了特定的付款选项(woocommerce/php),则覆盖付款接收方

mysql 查询 - 我需要如何拆分表数据

mysql - 应用程序在生产环境中运行时更改 mysql 存储引擎的后果

mysql - 优化大数据的 'having count (distinct ) ' 查询

MS Access 的 PHP MySQL 数据库

php - 如何为不同的根目录配置 xampp Web 服务器

选择值后MySql变量为空