1.Stop mysql service
[root@localhost han]#/etc/init.d/mysqld stop
Stop MySQL: [OK]
2.Start mysql service with the following command
[root@localhost han]#mysqld_safe --user=mysql --skip-grant-tables --skip-networking &
(Prompt message: [root@localhost han]# nohup: ignoring input and redirecting stderr to stdout Starting mysqld daemon with databases from /var/lib/mysql)