我正在使用mysql 5.1.16和word按Ver3.3.1
WordPress数据库错误MySQL服务器已退出查询,从wp_terms中选择term_id作为t,其中t.name =‘term_id-新闻’由shutdown_action_hook、do_action、call_user_func_array、autoblogged-> ab_shutdownIntercept、autoblogged>ab_processFeed、autoblogg->ab_itemAddPost、wp_set_object_terms、wp_insert_term、term_exists组成。
有人知道是什么导致的吗?它把节目保存在我的error_log里
发布于 2012-02-14 09:59:07
您必须编辑php文件"wp-db.php“(在Wordpress安装的"wp-include/”文件夹中)并添加
$this->query("set session wait_timeout=600");在"___construct“方法的某个位置(在第535行附近),在
if (!$this->dbh)语句。
有关此修复这里的更多信息<--
以防万一:
http://dev.mysql.com/doc/refman/5.0/en/gone-away.html
希望这能有所帮助。
(来源:谷歌)
发布于 2014-01-15 02:27:57
原因是执行MySQL查询花费的时间太长。除了上面的解决方案之外,另一个可能的解决方法是以某种方式加快数据库的速度。在我的例子中,优化PHPMyAdmin中的表就足以阻止这个错误。
来源:http://robsnotebook.com/wordpress-mysql-gone-away#comment-95722
https://stackoverflow.com/questions/9272908
复制相似问题