MySQL forget password of root Posted on 2015-12-12 | stop mysql and modify my.cnfservice mysql stop add below to my.cnf[mysqld]skip-grant-tables reset password of user rootmysql USE mysql;UPDATE user SET Password=password('your-new-password') WHERE User='root';flush privileges;quit; modify my.cnf againremove below from [mysqld]skip-grant-tables restart mysqlservice mysql restart