windows系統Mysql root賬號登錄問題解決

1.關閉mysql服務

2.cmd在mysql的bin目錄下執行,mysqld --defaults-file="D:\ProgramFiles\mysql-5.6.26\my-default.ini" --console --skip-grant-tables

3.mysql -uroot 登錄

4.use mysql

5.update user set password='yourpassword' where user='root';

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