Either the socket has been removed or is in a different location than you
think. Try connecting by host and port. I would also verify with a database
restart that the socket is being created where you think it is. If you
continue to have issues look over this page to see if it helps.
http://dev.mysql.com/doc/mysql/en/Problems_with_mysql.sock.html

-----Original Message-----
From: Rajashik Kar
To: [EMAIL PROTECTED]
Sent: 8/18/04 2:06 AM
Subject: Can't connect to local MySQL server through socket


Hi,

Iam getting the error "Can't connect to local MySQL server through
socket" whenever Iam trying to start mysql prompt.
Kindly Help. Following is the trace. Iam using an Unix Solaris8.



svtlab7/opt/mysql/bin% mysql -u root -p
Enter password: 
ERROR 2002: Can't connect to local MySQL server through socket
'/tmp/mysql.sock' (2)

svtlab7/opt/mysql/bin% ls /tmp/mysql.sock
/usr/local/bin/ls: /tmp/mysql.sock: No such file or directory
 
svtlab7/opt/mysql/bin% ps -aef | grep mysqld
    root 16448 16422  0 12:23:59 pts/5    0:00 grep mysqld
    root  9848     1  0   Aug 14 ?        0:00 /bin/sh ./bin/safe_mysqld
--defaults-extra-file=/opt/ALAams/ams4.4.7/config/mys
    root  9866  9848  0   Aug 14 ?        0:01 /opt/mysql/bin/mysqld
--defaults-extra-file=/opt/ALAams/ams4.4.7/config/mysql.c
svtlab7/opt/mysql/bin%


It seems the  mysqld is running, but still Iam getting "Can't connect to
local MySQL server through socket " error


thanks,
-raj






Confidentiality Notice 

The information contained in this electronic message and any attachments
to this message are intended
for the exclusive use of the addressee(s) and may contain confidential
or privileged information. If
you are not the intended recipient, please notify the sender at Wipro or
[EMAIL PROTECTED] immediately
and destroy all copies of this message and any attachments.

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:
http://lists.mysql.com/[EMAIL PROTECTED]

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to