當(dāng)前位置:
首頁 >
idea连接mysql数据库时连接显示错误caching_sha2_password
發(fā)布時間:2023/12/3
40
豆豆
生活随笔
收集整理的這篇文章主要介紹了
idea连接mysql数据库时连接显示错误caching_sha2_password
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
問題描述
Connection to paradigm@localhost failed. Unable to load authentication plugin 'caching_sha2_password'.問題原因
mysql8之前的版本使用的密碼加密規(guī)則是mysql_native_password,但是在mysql8則是caching_sha2_password,所以需要修改密碼加密規(guī)則
解決方法
查看用戶的密碼加密規(guī)則
select user,host,plugin,authentication_string from user;修改密碼加密規(guī)則
alter user 'root' @'localhost' identified with mysql_native_password by 'root';注意
‘root’;是把數(shù)據(jù)庫的密碼給修改了
總結(jié)
以上是生活随笔為你收集整理的idea连接mysql数据库时连接显示错误caching_sha2_password的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 如何突破路由器限速路由器如何解决限速
- 下一篇: ORACLE数据库常用命令总结