Recover MySQL root Password

Step # 1: Stop the MySQL server process.Step # 2: Start the MySQL mysqld server/daemon process with the –skip-grant-tables option so that it will not prompt for password.Step # 3: Connect to mysql server as the root user.Step # 4: Setup new mysql root account password i.e. reset mysql password.Step # 5: Exit and restart the MySQL server.

via Recover MySQL root Password.