PDA

View Full Version : "simultaneous database connections" help


bosanci28
08-24-2011, 03:55 PM
i had some email coming from my site

this one:


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)
/home5/xxxxx/public_html/xxxx/includes/class_core.php on line 314

MySQL Error :
Error Number :
Request Date : Friday, August 12th 2011 @ 04:27:17 AM
Error Date : Friday, August 12th 2011 @ 04:27:17 AM
Script : http://xxxxxxx.com/calendar.php?month=3&year=2007&c=1&do=displaymonth
Referrer :
IP Address : xxxxx
Username :
Classname : vB_Database
MySQL Version :


and my host said that the error comes from """simultaneous database connections" !,
and they said that for some reason there is something into the script that is not right...

and i have not a clue what!,

i have the latest installed ver 4.1.5 ,

any idea?

thank you,

Videx
08-25-2011, 01:18 AM
That's one of those common errors seen on oversold shared servers. But you said nothing about your server or addons or simultaneous members online, etc. etc.

bosanci28
08-25-2011, 01:24 AM
well,based on some info that i researched ,
i think i have a " Baidu " spider... that is trying to connect to many times on my site,,and maybe thats the problem right now,

i did install this (https://vborg.vbsupport.ru/showthread.php?p=2237657#post2237657),and waiting for some results...but still need to know the exact steps ,how to set that right,

thanks

BSMedia
08-25-2011, 04:58 AM
You could use a robots.txt in your root with a crawl delay rather than banning an entire search engine that might send traffic to your site.

User-Agent: baiduspider
Crawl-delay: 20

If that doesn't work, then you can just go ahead and block em :D

bosanci28
08-25-2011, 12:54 PM
i used this mod from here (https://vborg.vbsupport.ru/showthread.php?p=2237893#post2237893) and it looks like it works for now,in blocking the maidu spider,but will still checking to see all are okay within the next few days,
thanks,