【已解決】Authentication method 'caching_sha2_password' not supported by any of the available plugins

通過vs鏈接mysql時,出現了該錯誤

  • 這個問題的根本其實就是登陸加密的規則不一樣,導致用戶驗證無法通過。

解決方法:

  • 找到安裝目錄的my.ini配置文件,在[mysqld]下添加配置語句:
  • default_authentication_plugin=mysql_native_password
  • 然後Win+R:打開cmd界面,重啓mysql【一定要重啓服務】
  • 運行 net stop mysql
  • 然後 net start mysql
    在這裏插入圖片描述

在這裏插入圖片描述

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