Hi Vidal, all !
Vidal Garza wrote:
Hi...
I need test mysql connections but i have a problem...
freebsd# uname -a
FreeBSD freebsd.aduanet.net 6.3-RELEASE FreeBSD 6.3-RELEASE #0: Wed Jan
16 04:18:52 UTC 2008 [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>:/usr/obj/usr/src/sys/GENERIC i386
freebsd# mysql --version
mysql Ver 14.12 Distrib 5.0.51a, for portbld-freebsd6.3 (i386) using 5.2
[[...]]
but it return error on the screen like and this its my PROBLEM! I would
like that all connections finish ok. The errors not apear on mysql_error
file.
: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (61)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket
'/tmp/mysql.sock' (61)
[[...]]
That 61 is not for decorative purposes, it has a significance.
Search your system header files for the error number 61, it should be
ECONNREFUSED ("Connection refused").
Then, check your FreeBSD documentation for the possible reasons of this
error number. This might give you a hint. On the machine I can access
(FreeBSD 6.0), "man connect" contains this:
ERRORS
The connect() system call fails if:
[[...]]
[ECONNREFUSED] The attempt to connect was forcefully rejected.
I did not check other calls whether they might return ECONNREFUSED.
At the moment, I am at a loss what might cause this reply.
Sadly, Stevens ("Advanced Programming in the Unix Environment") does not
describe it, rather refers to his "Unix Network Programming" (which I do
not have).
I propose you consult Google or some other search engine.
Your attempt to change the socket owner was bound to fail, IMO, because
a permission problem would have produced a different error number
(typically, EACCESS).
HTH,
Jörg
--
Joerg Bruehe, Senior Production Engineer
MySQL AB, www.mysql.com
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]