Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   URGENT - HELP! ... Database Error (https://www.warriorforum.com/programming/538276-urgent-help-database-error.html)

kret0s 9th February 2012 11:18 AM

URGENT - HELP! ... Database Error
 
My site stopped working today and returns a Database Error:

Quote:

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!

Nochek 9th February 2012 11:22 AM

Re: URGENT - HELP! ... Database Error
 
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.

unintuitive 9th February 2012 11:24 AM

Re: URGENT - HELP! ... Database Error
 
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.

kret0s 9th February 2012 11:28 AM

Re: URGENT - HELP! ... Database Error
 
Quote:

Originally Posted by unintuitive (Post 5586816)
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...

Nochek 9th February 2012 11:31 AM

Re: URGENT - HELP! ... Database Error
 
Quote:

Originally Posted by kret0s (Post 5586839)
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)

unintuitive 9th February 2012 11:39 AM

Re: URGENT - HELP! ... Database Error
 
Quote:

Originally Posted by kret0s (Post 5586839)
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.

eka88 9th February 2012 11:46 AM

Re: URGENT - HELP! ... Database Error
 
Check your file "wp-config.php".
If you activate the plugin, remove your plugin from control panel, refresh and repair database table in phpmyadmin.

K Meier 10th February 2012 09:41 AM

Re: URGENT - HELP! ... Database Error
 
Check if the (MySQL) Database is still there. If so, reset password and enter the new one in the wp-config.php file


All times are GMT -6. The time now is 06:18 PM.