Error establishing a database connection

Error establishing a database connection

Posted by: leong
Posted on: 2009-01-30 05:36:00

My WordPress site hosted at http://www.bodhi.org.sg/ suddenly went down with error message:

Error establishing a database connection

Below is the output from curl:

$ curl -I http://www.bodhi.org.sg/
HTTP/1.1 500 Internal Server Error
Date: Fri, 30 Jan 2009 13:20:46 GMT
Server: Apache/2.0.61 (Unix) PHP/4.4.7 mod_ssl/2.0.61 OpenSSL/0.9.7e
X-Powered-By: PHP/5.2.6
Expires: Wed, 11 Jan 1984 05:00:00 GMT
Cache-Control: no-cache, must-revalidate, max-age=0
Pragma: no-cache
Last-Modified: Fri, 30 Jan 2009 13:20:46 GMT
Connection: close
Content-Type: text/html; charset=utf-8

Any idea what's wrong? Any help will be appreciated. Thanks Dreamhost. :)

Cheers,
Leong

Re: Error establishing a database connection

Posted by: Thingee
Posted on: 2009-01-30 11:26:00

I checked out the site and it looks fine...if you do see the problem please reply to this thread right away and I'll check it out again.

Re: Error establishing a database connection

Posted by: leong
Posted on: 2009-02-01 23:29:00

Thanks Thingee for your attention. You were right. The problem went away without my intervention, but now it's back. I see the error message "Error establishing a database connection" when I try to access http://www.bodhi.org.sg/.

Curl shows "HTTP/1.1 500 Internal Server Error":

HTTP/1.1 500 Internal Server Error
Date: Mon, 02 Feb 2009 07:24:44 GMT
Server: Apache/2.0.61 (Unix) PHP/4.4.7 mod_ssl/2.0.61 OpenSSL/0.9.7e
X-Powered-By: PHP/5.2.6
Expires: Wed, 11 Jan 1984 05:00:00 GMT
Cache-Control: no-cache, must-revalidate, max-age=0
Pragma: no-cache
Last-Modified: Mon, 02 Feb 2009 07:24:44 GMT
Connection: close
Content-Type: text/html; charset=utf-8

And here's how the DNS config looks like:

$ host www.bodhi.org.sg
www.bodhi.org.sg is an alias for wordpress.dreamhost.com.
wordpress.dreamhost.com has address 208.97.187.233

Thanks.
Leong

Edited by leong on 02/01/09 11:30 PM (server time).

Re: Error establishing a database connection

Posted by: Thingee
Posted on: 2009-02-03 13:33:00

Thanks for the report. I've been trying to get the admin to narrow down the problem with the mysql servers with these cases.

Tags: internal server errormessage errorserver apachedatabase connection7eapache 2php 5fricharsetphp 4error messagecontent typecheersutf 8text htmlgmtunix