Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 23 Sep 2010, 19:25
owning_y0u owning_y0u is offline
 
Join Date: Dec 2008
Keep getting to many connections database errors

I keep getting the following error


Database error in vBulletin :

mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
/var/www/vhosts/xxxxxxxx.eu/httpdocs/includes/class_core.php on line 313
Database error in vBulletin :

mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Too many connections
/var/www/vhosts/xxxxxxx.eu/httpdocs/includes/class_core.php on line 313
the database has a connection limit set on 250 connections so thats not the problem (as we have max 75 connections at the sametime.
Cookie session times out after 15 mins so not a problem.

getting crazy as i get around the 50 e-mails a day about it.
Reply With Quote
  #2  
Old 23 Sep 2010, 20:10
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
These are server issues that you will need to talk to your host about.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #3  
Old 23 Sep 2010, 20:48
owning_y0u owning_y0u is offline
 
Join Date: Dec 2008
Originally Posted by Lynne View Post
These are server issues that you will need to talk to your host about.
The host said it has nothing to-do with the server i hope you can be a bit more precise about it so i know where to start looking
Reply With Quote
  #4  
Old 23 Sep 2010, 21:27
KevinL KevinL is offline
 
Join Date: Apr 2005
Your host has limited the connections to the database. So it is a host problem.

If it is hostgator I think they only allow 50 concurrent connections...
Reply With Quote
  #5  
Old 23 Sep 2010, 21:29
TheRageIsOn TheRageIsOn is offline
 
Join Date: Mar 2010
check the mysql config to shorten the timeout values!
You may post them here...
Reply With Quote
  #6  
Old 23 Sep 2010, 21:33
TNCclubman's Avatar
TNCclubman TNCclubman is offline
 
Join Date: Sep 2008
are you on a dedicated server or shared server?
Reply With Quote
  #7  
Old 23 Sep 2010, 22:31
owning_y0u owning_y0u is offline
 
Join Date: Dec 2008
Originally Posted by KevinL View Post
Your host has limited the connections to the database. So it is a host problem.

If it is hostgator I think they only allow 50 concurrent connections...
no its not hostgator we use a decent host, Connection limited is set to 250 and we have a max of 75 open connections on peak times.

Originally Posted by TNCclubman View Post
are you on a dedicated server or shared server?
its shared with 1 other website. at this very moment a dedicated server isn't in the option list.
Reply With Quote
  #8  
Old 23 Sep 2010, 23:14
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
See this page which covers both problems - Common MySQL Error Messages It is a server issue.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #9  
Old 24 Sep 2010, 01:23
Videx's Avatar
Videx Videx is offline
 
Join Date: Feb 2007
High CPU loads on an oversold shared server can cause both these errors - and lots of other semi-random ones. But unless your one other co-sharer is really misbehaving I can't see that. Still, you need to check your cpu loads around the times of the errors.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 08:40.

Layout Options | Width: Wide Color: