mac安裝mysql

問題
安裝mysql成功之後,想自己弄個數據庫試試,但是報錯。並不是錯誤代號,而是一段代碼:

Authentication plugin 'caching_sha2_password' cannot be 
loaded: dlopen(/usr/local/mysql/lib/plugin/caching_sha2_
password.so, 2): image not found
大概意思就是無法加載身份驗證插件’caching_sha2_password”

解決
1.打開系統偏好設置,找到mysql,點擊Initialize Database。
2.輸入你的新密碼。
3.選擇‘Use legacy password‘。
4.重啓mysql服務。
現在可以使用Navicat鏈接。 

 

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