idea连接mysql数据库时连接显示错误caching_sha2_password
生活随笔
收集整理的這篇文章主要介紹了
idea连接mysql数据库时连接显示错误caching_sha2_password
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
問題描述
Connection to paradigm@localhost failed. Unable to load authentication plugin 'caching_sha2_password'.問題原因
mysql8之前的版本使用的密碼加密規則是mysql_native_password,但是在mysql8則是caching_sha2_password,所以需要修改密碼加密規則
解決方法
查看用戶的密碼加密規則
select user,host,plugin,authentication_string from user;修改密碼加密規則
alter user 'root' @'localhost' identified with mysql_native_password by 'root';注意
‘root’;是把數據庫的密碼給修改了
總結
以上是生活随笔為你收集整理的idea连接mysql数据库时连接显示错误caching_sha2_password的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 如何突破路由器限速路由器如何解决限速
- 下一篇: git的常用命令