I Found the Fix Guys!
Akk I did was
/usr/sbin/setenforce 0
/etc/init.d/mysql start
Something to do with mysql only allowing the user "mysql" to use it. Theabove, relaxs this restrictions, so all users can use Mysql...
Pls advise if not tech correct etc.
Martin
http://forums.mysql.com/read.php?11,20759,21482#msg-21482
Re: #2002 - Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)
Posted by: John Speerin (IP Logged)
Date: April 7, 2005 02:16PM
WOOT.....found a solution
SE linux makes it very hard for anything to work in Fedora Core 3.....(generalization)
When i was shutting the computer down i noticed that there was and error in removing the mysql.sock.....no permissions. I had monkeyed arround trying to find out what i need to give permissions too.....the i revisited my installation proceedure. I had origionally installed Fedora Core using Stanton-Finley notes. During the install it made a reference to turn off the protection for the httpd daemon. SO CLICK, the light bulb came on.
Uninstall mysql server and mysql-max
reinstall mysql server and mysql-max (gets rid of any errors that may have occurrd previous)
What you need to do is to go to terminal in root
/usr/sbin/setenforce 0
/etc/init.d/mysql start
This will force selinux off and start msql to get a mysql.sock started.
Go to Applications > System Settings > Security Level and type in your root pass word
Open the SELinux tab and under Modify SE linux policy
open SElinux service protection and click on Disable SELinux protection for mysqld daemon.
reboot your computer