WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. GuysNation_Rob
    Member
    Posted 1 year 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
    Member
    Posted 1 year ago #

  3. Ipstenu-DH
    DreamHost Rep
    Posted 1 year 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
    Member
    Posted 1 year ago #

    That would be great! It's GuysNation.com

  5. Ipstenu-DH
    DreamHost Rep
    Posted 1 year 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:
    admin-commenters-comments-count
    admin-word-count
    permalinks-migration-plugin-for-wordpress (you usually don't need this after you've used it)
    sphider
    timthumb-vulnerability-scanner (if you know you're not using TimThumb, you don't need this)
    wp-word-count

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

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

    Counter plugins are, generally, just going to slow you down. You really don't need THREE:
    counterizeii
    official-statcounter-plugin-for-wordpress
    wp-stats

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

    antivirus
    bitdefender-antispam-for-wordpress
    si-captcha-for-wordpress
    wordpress-firewall-2
    wp-security-scan
    wp-malwatch

    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

Tags