cd 到mysql/bin目录
D:\mysql\mysql-5.5.28-win32\bin>mysql -uroot
mysql> use mysql
mysql> UPDATE user SET password=PASSWORD('yuanyu') WHERE user='root';
mysql> FLUSH PRIVILEGES;