mysql忘記密碼,恢復密碼的方法

忘記root管理員密碼操作方法

1.net stop mysql 停止mysql服務

2.c:\>mysql\bin>mysqld --skip-grant-tables

3.再開一個命令控制檯窗口c:\>mysql\bin>mysql -uroot  update mysql.user

set password=password('zxw123') where user='root';

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章