Page 1 of 1

Database Connection failed - occurs several times a day

Posted: Thu Dec 14, 2006 6:53 pm
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

Re: Database Connection failed - occurs several times a day

Posted: Thu Dec 14, 2006 7:13 pm
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?

Re: Database Connection failed - occurs several times a day

Posted: Thu Dec 14, 2006 11:18 pm
by JohnnyB
Hi Dee,

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

:)

Re: Database Connection failed - occurs several times a day

Posted: Thu Dec 21, 2006 10:35 pm
by JohnnyB
Update:  Setting "disabling persistent connections" seems to help.