I have installed mysql rpms via YUM on CentOS 5 box and trying to start mysql daemon but getting timed out error below
Timeout error occurred trying to start MySQL Daemon.
Starting MySQL: [FAILED]
but when i check with service commnad it shows mysqld is running
service mysqld status
mysqld (pid 24915) is running...
and when i try to access mysql via below command and also getting the error
mysql -u root -p
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
Earlier this system was having mysql running but i had removed those rpms and also the /var/lib/mysql dir.
Please help me!