WordPress is a very useful and widely supported publishing tool but sometimes I think I’ll go totally bald or grey because of it. Especially when I realize my blog has been down for several hours.


In case you’re having a WordPress blank page problem caused by ‘MySQL server has gone away’ – there is a solution that should work: http://robsnotebook.com/wordpress-mysql-gone-away
Since Rob stopped updating the page I attempted to use his solution for WordPress 2.9.1 and here’s my wp-db.php file for you to download and try using: http://www.smart-up.eu/img/wp-db.php.txt
Just remember to backup first in order to fallback to your original wp-db.php file if something goes wrong.
I hate to meddle with someone else’s code but what can you do. Sometimes you have to be a man, right?
Keep me posted if it works for you and I’ll let you know if I have any more of these unpleasant ‘MySQL server has gone away’ episodes.

by Richard Baldock
11 Jun 2010 at 00:52
Hi, the link for the download of the file fails. Is there somewhere else I can download it?
by czone
28 Jul 2010 at 09:08
Hello! File wp-db.php versions of 2.9.1 and 2.9.2 different?
by Michal Faber
24 Oct 2010 at 00:49
@Richard: I checked and it works OK:
http://www.smart-up.eu/img/wp-db.php.txt
@czone: I tested it only for 2.9.1