Simple Machines Community Forum

SMF Support => Server Performance and Configuration => Topic started by: sann on October 16, 2005, 10:10:03 PM

Title: SMF was unable to connect to the database.
Post by: sann on October 16, 2005, 10:10:03 PM
my forum stopped working after 2 days.

This is the message that I'm receiving:

Sorry, SMF was unable to connect to the database. This may be caused by the server being busy. Please try again later.

I've tried to find the topic in these pages, but the search is producing 0 results. Any help would be appreciated.
Title: Re: SMF was unable to connect to the database.
Post by: kenchix1 on October 16, 2005, 10:41:23 PM
Quote from: sann on October 16, 2005, 10:10:03 PM
my forum stopped working after 2 days.

This is the message that I'm receiving:

Sorry, SMF was unable to connect to the database. This may be caused by the server being busy. Please try again later.

I've tried to find the topic in these pages, but the search is producing 0 results. Any help would be appreciated.

You can try to clean the database sessions and check the settings.php for any errors.
Title: Re: SMF was unable to connect to the database.
Post by: JayBachatero on October 17, 2005, 12:13:53 AM
What you should so is save Settings.php to your pc then delete it from the server.  after that renae Settings_bak.php to Settings.php  that should fix it.  It seems like you made some changes to the sql maybe a password a password hange or something.
Title: Re: SMF was unable to connect to the database.
Post by: moraidh on November 04, 2007, 08:37:46 AM
Sometimes I get this intermittently, and get error messages emailed to me.

Not really a problem, but why does it happen so sporadically?  I have never touched settings.php, so if there was a password issue, the forum would be completely unavailable until it was resolved, surely?

Somehow I have always assumed it was something to do with the host...
Title: Re: SMF was unable to connect to the database.
Post by: 青山 素子 on November 04, 2007, 12:45:01 PM
If it is intermittent it is likely the host. Especially on a shared plan, sometimes the database connections fill and your forum will hit that time and not be able to connect because of that. Having an e-mail about connection issues once in a while isn't a bad thing. It becomes bad when the connection issues are happening regularly and for long periods.