Repeated Issue: Error establishing a database connection (5 posts)

  1. GuysNation_Rob
    Posted 3 years ago #

    In the past few days, I keep having an issue where the page indicates: "Error establishing a database connection"

    I've been running the site for years, and there haven't been any changes to the template in months.

    I have upgraded to the most recent version of WordPress, but that was a couple weeks ago.

    The MySQL database doesn't seem to have any issues, as I'm able to connect to it through my webserver's panel (dreamhost).

    I logged into the site this morning, 20 minutes before it happened. I didn't make any changes.

    Another author was in the site and uploaded three pictures for an article he published, which happened probably 5 minutes before the site had the Database Error message.

  2. graphical_force
    Posted 3 years ago #

  3. Mika Epstein
    DreamHost Rep
    Posted 3 years ago #

    We had an outage recently that may have impacted you, but if you'd like to give me your domain name, I can look into it for you.

  4. GuysNation_Rob
    Posted 3 years ago #

    That would be great! It's GuysNation.com

  5. Mika Epstein
    DreamHost Rep
    Posted 3 years ago #

    Well one thing jumps out at me. You upgraded core, but not plugins :) And you sure have a lot of them. Sometimes WP has those DB errors when it's trying to do too much and it's timing out. Looking at those plugins, I would suspect that's happening here.

    I would start by taking out plugins that aren't absolutely necessary for the running of the site.

    These plugins, while cool, aren't giving you as much a benefit as you might thing:
    permalinks-migration-plugin-for-wordpress (you usually don't need this after you've used it)
    timthumb-vulnerability-scanner (if you know you're not using TimThumb, you don't need this)

    This plugin has been replaced by JetPack, which also has a Twitter tweet-my-post replacement, and a lot of FaceBook replacements.

    This plugin isn't needed since you have WordPress SEO, and it does this:

    Counter plugins are, generally, just going to slow you down. You really don't need THREE:

    Personally I also don't really recommend any 'security' plugin, but you've got a lot more than you need:


    I would go through those and remove ... well. All of them, really. But if you want to keep one, pick one. And let it not be Captcha, please. They're really horrific for users.

Topic Closed

This topic has been closed to new replies.

About this Topic