We were seeing email messages about
Can\'t connect to local MySQL server through socket
For example, if a workgroup has no database associated with it, then checking to see if it has annotations was causing this message.
The solution was to add a call to sql_exists()
,
which will not send email if the table does not exist
MySQL generated an error.This user is not logged in.Apache environment: SCRIPT_URI = http://embedded.eecs.berkeley.edu/mescal/images/compass_r.png HTTP_REFERER = http://embedded.eecs.berkeley.edu/mescal/forum/4.html REMOTE_HOST = The error message is: sql.inc.php: sql_query(): Failed to connect to database auth_3 on localhost as dbreader: Can\'t connect to local MySQL server through socket \'/tmp/mysql.sock\' (146) ------------------------------------------ A file has been created to keep track of repeats of this error within a 60-minute period. To delete this file, log onto andrews as root and rm -f /home/www/wwwdata/delugeMail/35544c2c4df4fdd8403afcdf3d2e28a7The interesting thing here is that
146
is the code in /usr/include/sys/errno.h
for
#define ECONNREFUSED 146 /* Connection refused */http://publib.boulder.ibm.com/httpserv/ihsdiag/sidderror.html suggests:
Solaris 10 has an apparent problem, seen both on SPARC and x64 platforms, which results in the ECONNREFUSED failure even under relatively light loads. This issue is tracked by Sun under bug id 6460268. Customers encountering the \"Connection refused: SSL0600S\" message on Solaris 10 should check with Sun on the availability of a fix for this problem.http://au.sunsolve.sun.com/search/document.do?assetkey=1-34-10-1 says that this is fixed inMarch 14, 2007 status: Sun reported that fixes for this bug are now in the development build of Solaris. The fixes have not yet been backported to Solaris 10.
June 1, 2007 status: Sun reported that a test/temporary patch is currently available for Solaris 10; it will be integrated in the next update of Solaris 10, which will probably release in July.
Patch-ID# 125174-02 Synopsis: SunOS 5.10: tl driver patch BugId\'s fixed with this patch: 6452679 6460268 Changes incorporated in this version: Date: Sep/14/07