View previous topic :: View next topic |
Author |
Message |
yuch
Joined: 27 Feb 2003 Posts: 13 Location: Singapore
|
Posted: Thu Feb 27, 2003 2:34 pm Post subject: Too many connections... |
|
|
ah...I'm new to php and sql, so I'm pretty clueless here...here goes:
I'm getting this error frequently:
Warning: Too many connections in /b2-include/b2functions.php on line 37
Warning: MySQL Connection Failed: Too many connections in /b2-include/b2functions.php on line 37
Can't connect to the database server. MySQL said:
Too many connections
I was editing my page and constantly refreshing to see the results...but if i wait long enough the site will work again...
Can someone explain when and where exactly a connection is opened? And is there a way to close a connection at appropriate times to prevent clogging of connections? how should I use this: mysql_close($db); ?
I recently fixed the refresh thingy hack to enable page refreshes to work in IE... if i refresh a page once, does this open a new connection?
Thanks in advance... _________________ yuch ^^ |
|
Back to top |
|
 |
Cyberian75
Joined: 26 Sep 2002 Posts: 1106 Location: Oregon
|
Posted: Thu Feb 27, 2003 5:15 pm Post subject: |
|
|
I believe the connection gets closed properly after a page loads. You don't have to worry about that. Your problem seems to be with your host and not with b2. Ask them to increase the number of connections allowed to the database. _________________ Michael P. |
|
Back to top |
|
 |
yuch
Joined: 27 Feb 2003 Posts: 13 Location: Singapore
|
Posted: Sat Mar 01, 2003 7:28 pm Post subject: |
|
|
Thanks for your help! Helped to reassure me...
 _________________ yuch ^^ |
|
Back to top |
|
 |
|