Support » Installing WordPress » Error establishing database connection but everything else on host is working???

  • I have been running my WordPress blog for about 3-4 months now and haven’t had any problems until today. I checked my blog a few hours ago and it was fine. The next moment I go to check it, I get the Error establishing database connection. I have checked my old pages on the website ( and I am able to pull up media on the site. I am also able to sign into my FTP with no problem. What in the world could be causing this problem? The only thing different in my checking the website this morning was that I was using my Dell Axim to do so, but it is running off the same wireless connection as my laptop, and the logs show the same IP address tried to access. I see the server code 200, which should mean everything is fine, but obviously something is amiss. I can’t seem to find where anything changed, and it looks like the server is up, so what kind of thing could trigger this? Is it possible for a server to only partially be down? I mean, even my wp-uploads are showing up individually…I’m totally stumped!!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hmmm, I am having trouble getting to the host’s status page with this message: Warning: mysql_connect() [function.mysql-connect]: Can’t connect to MySQL server on ‘’ (111) in /home/virtual/site5/fst/var/www/html/news/news.php on line 429
    I cannot connect to the database.

    So I guess that might be my clue as to what is wrong….

    i’m having a similar problem, but without the clue from my host’s SQL status. everything looks fine on their end, as far as i can tell – although i’m not an expert in this field by any means.

    i have three wordpress installations at my domain and a coppermine gallery. two out of the three wp installs and the cpg gallery always work fine. is the main portal to my site, and it’s always been a healthy wordpress baby, never a database error, never any downtime. then there’s my wp baby with the birth defects; it seems like about half the time i try to access the site, i get the “error establishing database connection” message, which suggests that my database server might be down or my wp-config.php file might be busted. as far as i can tell, neither of these things are the problem.

    i mentioned my cpg gallery because it uses the exact same SQL database as, but it’s never down. right now, for example. same database, but no problems. according to my dreamhost panel, all is as it should be, server status is fine, i can log into my hostname via phpmyadmin, everything seems to check out…

    any insight would be vastly appreciated. well, at least for the two readers that occasionally visit that blog. thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error establishing database connection but everything else on host is working???’ is closed to new replies.