We're still running a non-optimized mysql setup. I'm in the process of optimizing it now so any suggestions are welcome. Until recently we haven't had any issues but now we are receiving an error regarding socket connections. It seems to occur randomly and not for every script all the time. Some searches suggested the mysql.sock file missing or the hard disks full. I've checked both and there are no issues there. My theory is that the max connections is being exceeded and that's why we get the socket error. That's just a guess and I don't know how to check.
Here's the message I get in the email throughout the day, the PHP scripts differ but the socket message is always the same:
Any ideas would be welcome.
Edit: Could a moderator please rename the thread title? I somehow had a typo and can't fix it.
Here's the message I get in the email throughout the day, the PHP scripts differ but the socket message is always the same:
Code:
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) /home/xxxxxxxx/public_html/includes/class_core.php on line 317
MySQL Error :
Error Number :
Request Date : Saturday, March 1st 2014 @ 02:58:27 PM
Error Date : Saturday, March 1st 2014 @ 02:58:27 PM
Script : http://www.xxxxxxxx.com/cron.php?rand=1393703903
Referrer : http://www.xxxxxxxx.com/tournaments.php?t10
IP Address : x.x.x.x
Username :
Classname : vB_Database
MySQL Version :
Edit: Could a moderator please rename the thread title? I somehow had a typo and can't fix it.
Last edited: