boardom Forum Index boardom
b2 message board
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Too many connections...

 
Post new topic   Reply to topic    boardom Forum Index -> How to ?
View previous topic :: View next topic  
Author Message
yuch



Joined: 27 Feb 2003
Posts: 13
Location: Singapore

PostPosted: Thu Feb 27, 2003 2:34 pm    Post subject: Too many connections... Reply with quote

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
View user's profile Send private message Send e-mail
Cyberian75



Joined: 26 Sep 2002
Posts: 1106
Location: Oregon

PostPosted: Thu Feb 27, 2003 5:15 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address
yuch



Joined: 27 Feb 2003
Posts: 13
Location: Singapore

PostPosted: Sat Mar 01, 2003 7:28 pm    Post subject: Reply with quote

Thanks for your help! Helped to reassure me...
Smile
_________________
yuch ^^
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    boardom Forum Index -> How to ? All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2 © 2001, 2002 phpBB Group