ERROR 2002 (HY000): Cannot connect to local MySQL server via socket '/var/lib/mysql/mysql.sock' (2)
I had mysql installed on fedora 20 using yum install mysql mysql-server, it is installed correctly, but I cannot use it .. So I got tired of installing mysql server separately, but it gave me the same problem.