原文:java.sql.SQLException: Unable to load authentication plugin 'caching_sha2_password'.解决方法

问题描述: 今天遇到数据库版本问题,原来是mysql . ,升级到 . ,连接数据库就报错: Unable to load authentication plugin caching sha password . 解决方案: 网上解决方案是修改数据库密码加密方式,不建议这么改 修改两个地方: ,修改pom.xml中的 mysql connector java 版本为 .x.xx ,修改项目中数据库 ...

2021-01-06 11:04 0 829 推荐指数:

查看详情

Eclipse-Unable to load authentication plugin 'caching_sha2_password'

出错原因: mysql 8.0 默认使用 caching_sha2_password 身份验证机制,而之前的版本默认使用 mysql_native_password 身份验证机制 解决办法: 修改加密规则 :ALTER USER 'root'@'localhost' IDENTIFIED ...

Mon Mar 11 16:14:00 CST 2019 0 1755
Unable to load authentication plugin 'caching_sha2_password'.错误

今天整合SSM时,在创建连接时一直报错 Unable to load authentication plugin 'caching_sha2_password'. 研究了很久发现是因为MySQL的版本问题 我目前用的MySQL 8.0.15,据网上所说,5.x版本和8.x的区别如下: 5.X ...

Fri Aug 30 09:17:00 CST 2019 1 8063
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM