Suppose you forgot mysql password in the middle of a project and you tried almost all passwords and failed. So the only option left is to change the password. Then you can follow the below steps. Please note that you have to login as admin for doing this process.