MySQL Forums
Forum List  »  Install & Repo

Solution for: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
Posted by: Ibrahim Assaab
Date: June 07, 2008 02:00AM

Hi everybody,

I have got the same problem, but I have solved it by doing the following steps:

First: Make sure that the owner of /var/lib/mysql and its files and subdirectories is mysql user of mysql group

to do that run the following command:

chown mysql.mysql -R /var/lib/mysql/*

Second: change write permissions to rwxr-xr-x (755) for mysql directory, and all its files and subdirectories, by running the following command:

chmod 755 -R /var/lib/mysql/*

now start mysql service by running the following command (Red Hat and may fedora):

service mysql start


the error message should disappear and should output:
Starting MySQL. [ OK ]



I hope this solve your problem!


Best Regards


Ibrahim



Edited 1 time(s). Last edit at 06/07/2008 02:34AM by Ibrahim Assaab.

Options: ReplyQuote


Subject
Written By
Posted
January 08, 2009 02:01PM
Solution for: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
June 07, 2008 02:00AM
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.