OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (61)

From: Vidal Garza (vgarzaaduanet.net)
Date: Thu Apr 03 2008 - 12:22:26 CDT


Krishna Chandra Prajapati escribió:
> Just try mysqladmin ping that whether mysql is working or not
>
> Krishna
>
> On Thu, Apr 3, 2008 at 5:45 AM, Vidal Garza <vgarzaaduanet.net> 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 rootdessler.cse.buffalo.edu <mailto:
>> rootdessler.cse.buffalo.edu>:/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
>
I read, the connect information, but i dont find the answer...
I change the connection metod script.
I set

#!/bin/sh
...
/usr/local/bin/mysql -h 127.0.0.1 -u root -pmypassword MYDB -e "$query"
...

the -h option but i have a another message error...

...
...
ERRORERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1' (60)
ERROR 2003 (HY000) 2003 (HY000): Can't connect to MySQL server on
'127.0.0.1' (60)
ERROR: Can't connect to MySQL server on '127.0.0.1' (60)
 2003 (HY000): Can't connect to MySQL server on '127.0.0.1' (60)
ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1' (60)
ERRORERRORERRORERROR 2003 (HY000) 2003 (HY000) 2003 (HY000) 2003
(HY000): Can't connect to MySQL server on '127.0.0.1' (60)
: Can't connect to MySQL server on '127.0.0.1' (60)
...

There arent message on the systems logs and mysql logs...

With a shell i test mysql with ping
...
[ Thu Apr 3 11:11:53 CST 2008 ] mysqld is alive
[ Thu Apr 3 11:12:35 CST 2008 ] mysqld is alive
...

I have a cuestion, where do you find the system header files error
number (61)?

--
====================================================
Ing. Vidal Garza Tirado
Depto. Sistemas
Aduanet S.A. de C.V.
Tel. (867)711-5850 ext. 4346, Fax (867)711-5855.
Ave. César López de Lara No. 3603 Int. B Col Jardín.
Nuevo Laredo, Tamaulipas, México.

--
Este mensaje ha sido analizado por MailScanner
en busca de virus y otros contenidos peligrosos,
y se considera que está limpio.
For all your IT requirements visit: http://www.aduanet.net

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql