UnableToConnectException: Public Key Retrieval is not allowed

mery·2023년 2월 8일
0

/Spring/TroubleShooting

목록 보기
5/9


UnableToConnectException: Public Key Retrieval is not allowed

상황: Mysql 8.0 버전을 사용중 에러

원인: useSSL=false로 설정하고 allowPublicKeyRetrieval 설정을 하지 않음


  • useSSL 해결방법
jdbc:mysql://localhost:3306/test_db?useSSL=false&allowPublicKeyRetrieval=true

접속하려는 datasource URL에 쿼리 파라미터로 이렇게 설정해준다.

  • PublicKeyRetrieval 해결방법
  1. Intellij에서 database > advanced 들어감
  2. allowPublicKeyRetrievaltrue로 바꿔줌

0개의 댓글