occasional error message “ERROR ESTABLISHING A DATABASE CONNECTION” on website and admin panel

Hi there,

We updated the theme a few days ago. However, we occasionally get the error message “ERROR ESTABLISHING A DATABASE CONNECTION” on both the website and the admin panel for less than 15 seconds. We have checked the wp-config.php and have not found any issue. Most importantly, we have over 40 websites sitting on a Digital Ocean droplet. When it’s down, all other websites are working normally. So I guess there is nothing wrong with the database server.

I suspect that the database sheets in your theme are corrupt. Any idea?

Look forward to hearing from you shortly. Thanks a lot.

BR,

Tom

Comments

  • Hello,
    You have to contact your hosting provider, the theme uses the same functionality as the wordpress to connect to the database, so this is not a theme fault.
    It must be a problem with your configuration of the server.

    thanks
  • hey bro,

    thanks for your reply. let me reiterate that Most importantly, we have over 40 websites sitting on a Digital Ocean droplet. When it’s down, all other websites are working normally. So I guess there is nothing wrong with the database server.

    this is NOT a server issue otherwise all other websites would have been down at the same time!!

    br,
    tom
  • BeTheme does not have anything in common with that problem, you could even turn on the twenty twenty theme and the issue will be the same.
    This is clearly problem of the configuration of the wordpress or configuration of the server.

    The connection with the mysql server is not changed, we use the same functionality as the core wordpress do.
    What is unique for BeTheme, are different queries for the database (for getting informations), but not the connection method itself.

    Please double check, if login and password for mysql database is correct in the wp-config.php file.
    Also, check if it's connected to correct database - if you want, reinstall the wp and betheme from scratch.

    thanks
  • hi there, thanks a lot for your time!
    have a good one.
    br,
    tom
Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.