MySQL Forums
Forum List  »  Install & Repo

Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
Posted by: liam o'connor
Date: April 20, 2006 11:51PM

Hmm

I have encountered the same problem. I am using SuSE 10. SQL WAS working, but i'm not sure what happened and it totally broke.

I reinstalled the packages, but it didn't help

If i start the mysql daemon manually (not through yast) it doesn't create the socket file, and thus mysql client and mysqladmin etc. all generate errors when i attempt to use them. my.cnf points to the same socket address as is being requested. If i create the file, the error still occurs.

I checked permissions and the user is mysql, group mysql, rw-rw-r =/

I don't know why this is happening. Any ideas?



Edited 1 time(s). Last edit at 04/20/2006 11:52PM by liam o'connor.

Options: ReplyQuote


Subject
Written By
Posted
January 08, 2009 02:01PM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
April 20, 2006 11:51PM
April 15, 2009 11:56AM
October 21, 2009 06:18PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.