[CentOS] Error 2002 with MySQL on a new Centos 5.5 installation

Sat Mar 26 17:28:16 UTC 2011
Eero Volotinen <eero.volotinen at iki.fi>

2011/3/26 Todd Cary <todd at aristesoftware.com>:
> With my new Centos installation, I get the following error when I type in
>
> # mysql
>
> ERROR 2002 (HY000): Can't connect to local MySQL server through socket
> '/var/lib/mysql/mysql.sock' (2)
>
> I have Googled the error, but the results do not appear to be helpful

try starting server first and enable it on start:

service mysqld start ; chkconfig mysqld on

--
Eero