Hi guys.. Lately; I have been getting a lot of these errors on my site. Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in The pages load fine sometimes; but then sometimes I get the above error.. Do you know why I might be having trouble connecting to mySql??
if it works sometimes then it's probably a host issue. contact your hsot and let them know you are having issues
Fews thing can be possible : 1. if you got this error sometimes then it is your host problem. 2. if you got this error always , then your check your first parameter of the mysql_connect()