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

mysql高版本默認的身份驗證方式已經發生改變,在項目中中要使用對應版本的mysql連接驅動,特別是針對低版本,比如mysql . 升級到mysql . ,對應連接驅動也要升級到mysql . 。否則就會報錯java.sql.SQLException: Unable to load authentication plugin caching sha password。 但是若不想更改驅動,依舊想使 ...

2021-05-17 15:58 0 1539 推薦指數:

查看詳情

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