mysql 8 用戶密碼丟失

 mysqld --shared-memory --skip-grant-tables 

清除密碼

此時root用戶對應的authentication_string是爲空的,如果不爲空則使用命令 update user set authentication_string='' where user='root';

詳情請見   zhi_tong  說的很清楚

https://blog.csdn.net/Tong_zhi/article/details/84716210

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