Error [message #1148] |
Thu, 21 March 2002 21:38 |
DPitts18
Messages: 32 Registered: March 2002
Karma: 0
|
Member |
|
|
I keep getting the following error when I try to view my page, what does it mean?
Warning: Too many connections in /home/sites/cgi.passionscentral.com/forum2/include/db.inc on line 26
|
|
|
Re: Error [message #1149 is a reply to message #1148] |
Thu, 21 March 2002 22:31 |
Olliver
Messages: 443 Registered: March 2002
Karma: 0
|
Senior Member |
|
|
Hi, It probably means that ur server appears to have problems with persistant connections to SQL. U should edit ur GLOBALS.php to use just connect as method, that should solve the problem.
Look for the line where it says
$MYSQL_PERSIST = "Y";
and then turn it to
$MYSQL_PERSIST = "N";
Bye Ken
|
|
|
Re: Error [message #1150 is a reply to message #1148] |
Thu, 21 March 2002 22:37 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Tell your host to set the timeout time on idle SQL connection to something like 5 minute (300 seconds).
And like Ken suggested, don't use persistant connection, because then each apache child will want a mysql socket for itself.
FUDforum Core Developer
|
|
|
|
Re: Error [message #1154 is a reply to message #1153] |
Fri, 22 March 2002 01:39 |
Olliver
Messages: 443 Registered: March 2002
Karma: 0
|
Senior Member |
|
|
Hello, though it's often faster and easier to edit the GLOBALS.php directly, u can also change the setting via the admin controlpanel. U can find this item under the global settings -> SQL -> Use Persistent Connections from "yes" to "no". after that u just need to press the bottom right "set" button and u're done. bye Ken
|
|
|