How to reset MySQL Root password
service mysqld stop (To stop the currently running MySQL instance) mysqld_safe --skip-grant & (To enter into MySQL in safe mode) use mysql; update user set password=PASSWO RD("NEW-ROOT-PASSWORD" ) where User='root'; (To set the new root password) service mysqld restart (To restart the MySQL instance)