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
반응형
'Languages > SQL' 카테고리의 다른 글
[Error] Data too long for column 'password' at row 1 (0) | 2022.03.16 |
---|---|
[Error] Invalid use of NULL value (0) | 2021.08.06 |
[Error] nested exception is java.sql.SQLException: Access denied for user '계정명'@'localhost' (using password: YES)] with root cause (0) | 2021.06.03 |
join (0) | 2021.05.25 |
H2 데이터베이스 설치 (0) | 2020.12.12 |