Languages/SQL

[Error] nested exception is java.sql.SQLException: Unable to load authentication plugin 'caching_sha2_password'.] with root cause

잔망루피 2021. 6. 4. 14:16
반응형
Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction; nested exception is java.sql.SQLException: Unable to load authentication plugin 'caching_sha2_password'.] with root cause

위에는 에러 내용

 

USE 데이터베이스명입력;
ALTER USER 아이디입력@localhost IDENTIFIED WITH mysql_native_password BY '비밀번호입력'; 

 사용할 데이터베이스에 들어가서 위와 같이 사용자를 수정했다.

 

 

 

참고 👉 https://seoulbliss.tistory.com/88

 

[코딩이야기] java.sql.SQLException: Unable to load authentication plugin 'caching_sha2_password'. mysql 에러

Authentication plugin 'caching_sha2_password'.  mysql 에러 eclipse 에서 mysql 연동 시에 이런 오류를 발견할 때가 있다 그 이유는 바로 계정 권한 문제이다 그래서 현 ip에서 연결할 수 있는 권한 Alte..

seoulbliss.tistory.com

 

반응형