I have similar issues randomly once or twice a month.
I will keep an eye out for the source code next time it happens.
Quote:
Originally Posted by ehabfouad22
Thank you Paul,
I got this reply from my host:
"Dear Ehab,
I am sorry you are having issues with your website. The reason you are experiencing this error is because the limit of mysql connections is 10. There is no way to increase this limit, but the error is most likely caused by your connections not being closed. Ensure that your websites code is closing the database connections immediately after use. This will decrease the chance of this error occurring"
Now do you see that the value (10) is so low that it may cause this frequent error? If so, I would change my host to another one which provides a higher limit.
If you see that the value is sufficient, I would be grateful if you give me information on how to make sure that the forum codes is closing the database connections immediately after use.Thanks in advance! 
Ehab
|
That would be
GREAT information.!!
Quote:
Originally Posted by Lynne
10?!?! Wow. I have heard of some hosts keeping it as low as 25, but never 10. Yes, that is low.
Try disabling your mods for a few days and see if you still have the same problem.
|
Which host only gives you 10.?
Thanks
--------------- Added [DATE]1289246952[/DATE] at [TIME]1289246952[/TIME] ---------------
I got the error again.. here is what it said.
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title> Database Error</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta name="ROBOTS" content="NOINDEX,NOFOLLOW,NOARCHIVE" />
<style type="text/css">
<!--
body { background-color: white; color: black; }
#container { width: 400px; }
#message { width: 400px; color: black; background-color: #FFFFCC; }
#bodytitle { font: 13pt/15pt verdana, arial, sans-serif; height: 35px; vertical-align: top; }
.bodytext { font: 8pt/11pt verdana, arial, sans-serif; }
a:link { font: 8pt/11pt verdana, arial, sans-serif; color: red; }
a:visited { font: 8pt/11pt verdana, arial, sans-serif; color: #4e4e4e; }
-->
</style>
</head>
<body>
<table cellpadding="3" cellspacing="5" id="container">
<tr>
<td><img src="./image.php?type=dberror" alt="Database Error" width="48" height="48" /></td>
<td id="bodytitle" width="100%">Database error</td>
</tr>
<tr>
<td class="bodytext" colspan="2">The database has encountered a problem.</td>
</tr>
<tr>
<td colspan="2"><hr /></td>
</tr>
<tr>
<td class="bodytext" colspan="2">
Please try the following:
<ul>
<li>Load the page again by clicking the <a href="#" onclick="window.location = window.location;">Refresh</a> button in your web browser.</li>
<li>Open the <a href="/">www.gamelobby.com</a> home page, then try to open another page.</li>
<li>Click the <a href="javascript:history.back(1)">Back</a> button to try another link.</li>
</ul>
</td>
</tr>
<tr>
<td class="bodytext" colspan="2">The www.gamelobby.com forum technical staff have been notified of the error, though you may <a href="mailto:Info@Gamelobby.com">contact them</a> if the problem persists.</td>
</tr>
<tr>
<td class="bodytext" colspan="2"> <br />We apologise for any inconvenience.</td>
</tr>
</table>
<!--
Database error in vBulletin :
mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Too many connections
/home/content/m/i/l/milo327/html/Forum/includes/class_core.php on line 311
MySQL Error :
Error Number :
Request Date : Monday, November 8th 2010 @ 01:05:46 PM
Error Date : Monday, November 8th 2010 @ 01:05:46 PM
Script : http://www.gamelobby.com/Forum/cmps_index
Referrer : http://www.gamelobby.com/
IP Address : 108.13.48.18
Username :
Classname : vB_Database
MySQL Version :
-->
</body>
</html>
--------------- Added [DATE]1289254025[/DATE] at [TIME]1289254025[/TIME] ---------------
latest error code..
Code:
mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Too many connections
/home/content/m/i/l/milo327/html/Forum/includes/class_core.php on line 311