idea连接mysql数据库时连接显示错误caching_sha2_password
生活随笔
收集整理的這篇文章主要介紹了
idea连接mysql数据库时连接显示错误caching_sha2_password
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
問(wèn)題描述
Connection to paradigm@localhost failed. Unable to load authentication plugin 'caching_sha2_password'.問(wèn)題原因
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ù)庫(kù)的密碼給修改了
總結(jié)
以上是生活随笔為你收集整理的idea连接mysql数据库时连接显示错误caching_sha2_password的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 如何突破路由器限速路由器如何解决限速
- 下一篇: ORACLE数据库常用命令总结