命令提示符 net stop mysql 停止mysql服務
C:Documents and Settingstony>net stop mysql
MySQL 服務正在停止
MySQL 服務已成功停止
進入bin目錄
C:Documents and Settingstony>cd C:Program FilesMySQLMySQL Server
C:Program FilesMySQLMySQL Server
另外開一個新的cmd
C:Program FilesMySQLMySQL Server
mysql> use mysql;
mysql> update user set password=password("
mysql> flush privileges;
完事重啟服務
From:http://tw.wingwit.com/Article/Common/201311/5400.html