address@hidden ~]# mysql -u root ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
then I checked log ,there is no any error
address@hidden ~]# cat /var/log/mysqld.log
I stoped and start mysqld in client machine using
address@hidden ~]# service mysqld stop Stopping MySQL: [ OK ]
address@hidden ~]# service mysqld start Timeout error occurred trying to start MySQL Daemon. Starting MySQL: [FAILED]
Then i am trying to unmount ,it tells device id busy.but I am not using this directory
address@hidden ~]# umount /var/lib/mysql/ umount: /var/lib/mysql: device is busy umount: /var/lib/mysql: device is busy
again tryed to login mysql ,still it gives the error
address@hidden ~]# mysql -u root
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
Then Again I am started mysqld . lost time this was failed .now it is started
address@hidden ~]# service mysqld start
Starting MySQL: [ OK ]
Then I tryed to login . Now i am able to login .everthing is fine .
address@hidden ~]# mysql Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2 Server version: 5.0.51a Source distribution
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql>
Now I am getting log file it has error like this .