MySQL Forums
Forum List  »  Install & Repo

SOLUTION: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
Posted by: Noel Hall
Date: March 12, 2007 08:58AM

I have a solution to this problem. The root cause seems to be within SELinux.

I am using Fedora Core 6 with SELinux, so this should work for all systems with SELinux installed and active.

Root access is required

Select: System - Administration - Security Level and Firewall
Select the SELinux tab and expand Modify SELinux policy, scroll down to SELinux service protection, expand it and check the box for 'Disable SELiunx protection for mysqld daemon'.

After that select: System - Administration - Server Settings - Services and scroll down to background service mysql and click start. The mysql service will start.

or

Log in as root or su in terminal as root and use: /etc/init.d/mysql start.



Edited 1 time(s). Last edit at 04/07/2007 07:05AM by Noel Hall.

Options: ReplyQuote


Subject
Written By
Posted
January 08, 2009 02:01PM
SOLUTION: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
March 12, 2007 08:58AM
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.