Error: Can't connect to local MySQL server through socket...
Posted: Thu Jan 05, 2006 8:40 am
Hello all! It's been some time since I've been here (nearly 2 years) - so long in fact that the username I once had (Jim) is inaccessible to me - I don't use the email address previously associated to the account and SURE don't remember the password. I'll IM an admin about that though!
Anywho, nice to be back.
I return with ill tidings! I've set a server up with Debian Sarge, MySQL, PHP4 and VHCS2 (http://www.vhcs.net) and have the following problem:
After about 48 hours of uptime, the server either does one or both of the following:
1.) Hit's a relatively high load (considering the small amount of users I have) of between 1.8 and 2
2.) Seems to terminate MySQL
I get the following error on all scripts using MySQL (which is of course almost any application I have on the server):
The error logs aren't saying too much - except for the occasional error like "Child process could not be started..." which I google and get no result for.
A quick -mysqld restart fixes the problem, but it occurs again within 48 hours.
For an example of the error:
http://www.ntegrate.org/vhcs2
http://www.ntegrate.org/gallery/main.php
Thanks for your assistance!
Anywho, nice to be back.
I return with ill tidings! I've set a server up with Debian Sarge, MySQL, PHP4 and VHCS2 (http://www.vhcs.net) and have the following problem:
After about 48 hours of uptime, the server either does one or both of the following:
1.) Hit's a relatively high load (considering the small amount of users I have) of between 1.8 and 2
2.) Seems to terminate MySQL
I get the following error on all scripts using MySQL (which is of course almost any application I have on the server):
Code: Select all
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) in /var/www/virtual/ntegrate.org/htdocs/gallery/lib/adodb/drivers/adodb-mysql.inc.php on line 348A quick -mysqld restart fixes the problem, but it occurs again within 48 hours.
For an example of the error:
http://www.ntegrate.org/vhcs2
http://www.ntegrate.org/gallery/main.php
Thanks for your assistance!