You can reset the root password for mysql by stopping mysql and restarting it using the following command:
Code:
mysqld --skip-grant-tables --skip-networking
This starts mysql without any security, hence disabling networking support.
You can then run the client, where you
and use standard SQL commands to reset your root password. Then stop mysql, and restart it normally.