当我要将我的wordpress网站迁移到另一台主机时,我需要上传所有内容和数据库。在将旧数据库上传到我的新主机期间,显示此消息“
Error
SQL query:
<!-- PMA-SQL-ERROR -->
<div class="error"><h1>Error</h1>
<p><strong>SQL query:</strong>
<a href="tbl_sql.php?sql_query=SHOW+TABLE+STATUS+FROM+%60countryn_ews%60+LIKE+%27wp_posts%27&show_query=1&db=countryn_ews&table=wp_posts&token=10945ea2302a757ebabaa49f1abdd5f3"><span class="nowrap"><img src="themes/dot.gif" title="Edit" alt="Edit" class="icon ic_b_edit" /> Edit</span></a> </p>
<p>
<code class="sql"><pre>
SHOW TABLE STATUS FROM `countryn_ews` LIKE 'wp_posts'
</pre></code>
</p>
<p>
<strong>MySQL said: </strong><a href="./url.php?url=http%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.1%2Fen%2Ferror-messages-server.html&token=10945ea2302a757ebabaa49f1abdd5f3" target="mysql_doc"><img src="themes/dot.gif" title="Documentation" alt="Documentation" class="icon ic_b_help" /></a>
</p>
<code>
#2006 - MySQL server has gone away
</code><br />
</div>
MySQL said: Documentation
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '<!-- PMA-SQL-ERROR -->
<div class="error"><h1>Error</h1>
<p><strong>SQL quer' at line 1
如果我忽略了该消息,那么也会显示该网站,但我无法使用以前的用户ID密码登录仪表板。我怎么能解决这个问题呢?
我的网站由wordpress 4.0.1运行
答案 0 :(得分:0)
查看此链接底部提供的评论/解决方案:
http://dev.mysql.com/doc/refman/5.0/en/gone-away.html
希望这会有所帮助..
答案 1 :(得分:0)
我遇到了同样的问题。首先检查数据库导出是否完成。如果做得好,请在文本编辑器中打开sql文件并删除该文件底部的html部分
<div class="error"><h1>Error</h1>