Saturday, August 3, 2013

WordPress database error MySQL server has gone away for query


Error

"WordPress database error MySQL server has gone away for query"

I got this error in "error_log" file

Solution


Add $this->query("set session wait_timeout=600");

at the end of "__construct" function in /indcludes/wp-db.php file


No comments:

Post a Comment