Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 9th Feb 2012, 11:18 AM   #1
Active Warrior
War Room Member
 
kret0s's Avatar
 
Join Date: 2011
Location: Toronto, Canada
Posts: 98
Thanks: 126
Thanked 8 Times in 8 Posts
Default
URGENT - HELP! ... Database Error
Share on: 
fb share twitter share gplus share more share

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!

The Green Magazine Blog Community
An Eco Friendly Blog by KnowYourEarth
Spreading Global Green Awareness & Education
kret0s is offline  
Unread 9th Feb 2012, 11:22 AM   #2
HyperActive Warrior
War Room Member
 
Nochek's Avatar
 
Join Date: 2012
Posts: 168
Thanks: 0
Thanked 55 Times in 36 Posts
Default
Re: URGENT - HELP! ... Database Error
Share on: 
fb share twitter share gplus share more share

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.

Nochek Solutions Presents:
The Hydrurga WSO - Rank Your Site #1 And Score Over The Penguin Updates!
Nochek is offline  
The Following User Says Thank You to Nochek For This Useful Post:
Unread 9th Feb 2012, 11:24 AM   #3
Warrior Member
War Room Member
 
unintuitive's Avatar
 
Join Date: 2009
Posts: 26
Thanks: 7
Thanked 8 Times in 6 Posts
Default
Re: URGENT - HELP! ... Database Error
Share on: 
fb share twitter share gplus share more share

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.

unintuitive is offline  
The Following User Says Thank You to unintuitive For This Useful Post:
Unread 9th Feb 2012, 11:28 AM   #4
Active Warrior
War Room Member
 
kret0s's Avatar
 
Join Date: 2011
Location: Toronto, Canada
Posts: 98
Thanks: 126
Thanked 8 Times in 8 Posts
Default
Re: URGENT - HELP! ... Database Error
Share on: 
fb share twitter share gplus share more share

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...

The Green Magazine Blog Community
An Eco Friendly Blog by KnowYourEarth
Spreading Global Green Awareness & Education
kret0s is offline  
Unread 9th Feb 2012, 11:31 AM   #5
HyperActive Warrior
War Room Member
 
Nochek's Avatar
 
Join Date: 2012
Posts: 168
Thanks: 0
Thanked 55 Times in 36 Posts
Default
Re: URGENT - HELP! ... Database Error
Share on: 
fb share twitter share gplus share more share

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)

Nochek Solutions Presents:
The Hydrurga WSO - Rank Your Site #1 And Score Over The Penguin Updates!
Nochek is offline  
Unread 9th Feb 2012, 11:39 AM   #6
Warrior Member
War Room Member
 
unintuitive's Avatar
 
Join Date: 2009
Posts: 26
Thanks: 7
Thanked 8 Times in 6 Posts
Default
Re: URGENT - HELP! ... Database Error
Share on: 
fb share twitter share gplus share more share

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.

unintuitive is offline  
Unread 9th Feb 2012, 11:46 AM   #7
Active Warrior
War Room Member
 
eka88's Avatar
 
Join Date: 2012
Posts: 42
Thanks: 0
Thanked 4 Times in 4 Posts
Default
Re: URGENT - HELP! ... Database Error
Share on: 
fb share twitter share gplus share more share

Check your file "wp-config.php".
If you activate the plugin, remove your plugin from control panel, refresh and repair database table in phpmyadmin.
eka88 is offline  
Unread 10th Feb 2012, 09:41 AM   #8
Developer
War Room Member
 
K Meier's Avatar
 
Join Date: 2011
Location: Dublin, Ireland
Posts: 363
Thanks: 5
Thanked 48 Times in 47 Posts
Default
Re: URGENT - HELP! ... Database Error
Share on: 
fb share twitter share gplus share more share

Check if the (MySQL) Database is still there. If so, reset password and enter the new one in the wp-config.php file
K Meier is offline  
Closed Thread


Bookmarks

Tags
database, error, urgent


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 05:50 PM.