Solving MySQL ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2)
I came upon this error after installing the latest version of MySQL using yum and securing it. The Error With mysqld running I tried to run mysql as follows: [ahmed@amayem ~]$ mysql ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2) Different failed attempts: Here are more attempts to get it…