Database Connection failed - occurs several times a day

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
JohnnyB
Dev Team Member
Dev Team Member
Posts: 731
Joined: Tue Nov 21, 2006 5:05 pm

Database Connection failed - occurs several times a day

Post by JohnnyB »

Hi,

I receive the Database Connection failed error message several times a day while viewing and/or working on the site.  I've searched and read every topic i can find in the forums and thought i'd start a new topic to see if I might be missing something.

I'm using the 1.0.2 "Maui" version with Persistent Database Connection and Use ADOdb lite enabled.

Is anyone else experiencing this?

What are some possible causes for a Database Connection failure other than the DB username and password?  Could it be my web host?

Thanks in advance for any suggestions.


-John
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo

--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: Database Connection failed - occurs several times a day

Post by Dee »

mww wrote: What are some possible causes for a Database Connection failure other than the DB username and password?  Could it be my web host?
It's definately your webhost... they run the database server. If you were using a wrong username and password in config.php you would always get the error.
Maybe it's a problem with a maximum number of connections reached. Did you try disabling persistent connections in config.php?
JohnnyB
Dev Team Member
Dev Team Member
Posts: 731
Joined: Tue Nov 21, 2006 5:05 pm

Re: Database Connection failed - occurs several times a day

Post by JohnnyB »

Hi Dee,

Thanks - I'll give that a try and then if that does not help, I'll contact the host...

:)
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo

--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
JohnnyB
Dev Team Member
Dev Team Member
Posts: 731
Joined: Tue Nov 21, 2006 5:05 pm

Re: Database Connection failed - occurs several times a day

Post by JohnnyB »

Update:  Setting "disabling persistent connections" seems to help. 
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo

--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
Post Reply

Return to “CMSMS Core”