net stop mysql
service mysqld stop
C:\MySQL\bin> mysqld --skip-grant-tables
/usr/bin/mysqld_safe --skip-grant-tables
USE mysql; UPDATE user SET Password=password('your-new-password') WHERE User='root';