URGENT - HELP! ... Database Error

by kret0s
7 replies
My site stopped working today and returns a Database Error:

Error establishing a database connection

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, cgiadmin@yourhostingaccount.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
I'm running a self hosted WordPress site on shared hosting...

How to fix this quickly? I need my site up and running!
#database #error #urgent
  • Profile picture of the author Nochek
    Can't connect to a wordpress database, so start by checking your wp-config.php file and making sure your database connection details are correct (and that there is a config file there!). Since it was probably working before, and isn't now, it might be because of a server change. Contact your hosting solution and check to see if they switched you out IP's, or possibly changed your MySQL connection details. If that's the case update your wp-config file.
    Signature
    Nochek Solutions Presents:
    The Hydrurga WSO - Rank Your Site #1 And Score Over The Penguin Updates!
    {{ DiscussionBoard.errors[5586792].message }}
  • Profile picture of the author unintuitive
    Have you installed any new plugins recently, or updated old ones? Sometimes buggy plugins can cause these errors. If you think this could be the case, log into your web host's FTP service and try changing the name of the folder of the suspected plugin. WordPress may begin responding again.
    {{ DiscussionBoard.errors[5586816].message }}
    • Profile picture of the author kret0s
      Originally Posted by unintuitive View Post

      Have you installed any new plugins recently, or updated old ones? Sometimes buggy plugins can cause these errors. If you think this could be the case, log into your web host's FTP service and try changing the name of the folder of the suspected plugin. WordPress may begin responding again.

      Did not install plugins.

      I updated yesterday with a new post.. but it was working fine a couple of hours ago...
      Signature
      The Green Magazine Blog Community
      An Eco Friendly Blog by KnowYourEarth
      Spreading Global Green Awareness & Education
      {{ DiscussionBoard.errors[5586839].message }}
      • Profile picture of the author Nochek
        Originally Posted by kret0s View Post

        Did not install plugins.

        I updated yesterday with a new post.. but it was working fine a couple of hours ago...
        Can you connect to the FTP and get the Server Error Log? I am assuming it should just be the one in your root directory. Post the last couple of error lines here so a clearer picture can be had of the issue (but please edit out the IP's since mine is on there :p)
        Signature
        Nochek Solutions Presents:
        The Hydrurga WSO - Rank Your Site #1 And Score Over The Penguin Updates!
        {{ DiscussionBoard.errors[5586859].message }}
      • Profile picture of the author unintuitive
        Originally Posted by kret0s View Post

        I updated yesterday with a new post.. but it was working fine a couple of hours ago...
        One possibility is that the problem lies with your hosting company. Hosts will often run web servers and database servers on separate physical hardware. If the database server is offline, you'd see an error like this.

        Some hosting companies offer a way to check the status of their servers -- if yours does, look there to see if there's any downtime being reported.
        {{ DiscussionBoard.errors[5586926].message }}
  • Profile picture of the author eka88
    Check your file "wp-config.php".
    If you activate the plugin, remove your plugin from control panel, refresh and repair database table in phpmyadmin.
    {{ DiscussionBoard.errors[5586982].message }}
  • Profile picture of the author K Meier
    Check if the (MySQL) Database is still there. If so, reset password and enter the new one in the wp-config.php file
    {{ DiscussionBoard.errors[5593434].message }}

Trending Topics