[MySQL] Public key retrieval is not allowed

ASHAPPYASIKNOW·2021년 10월 17일
0

DB (MySQL, PostgreSQL)

목록 보기
1/3
post-thumbnail

public key retrieval is not allowed

mysql 8.x 버전 이후로 발생
JDBC의 URL 서정 시 allowPublicKeyRetrieval=true 를 추가해 주면 됨

application.yml

spring:
  datasource:
    url: jdbc:mysql://localhost:23306?allowPublicKeyRetrieval=true&useSSL=false

REFERENECES

connection-java-mysql-public-key-retrieval-is-not-allowed

profile
36.9 It's good time to start something new

0개의 댓글