Hi all,
I have installed mysql rpms via YUM on CentOS 5 box and trying to start mysql daemon but getting timed out error below
Code:
/etc/init.d/mysqld start
Timeout error occurred trying to start MySQL Daemon.
Starting MySQL: [FAILED]
but when i check with service commnad it shows mysqld is running
Code:
service mysqld status
mysqld (pid 24915) is running...
and when i try to access mysql via below command and also getting the error
Code:
mysql -u root -p
Enter password:
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!