본문 바로가기

DB/Mysql

[Mysql] Public Key Retrieval is not allowed Error

반응형

Public Key Retrieval is not allowed

Mysql 8.0버전 이후부터

접속시 옵션을 useSSL=false를 주고 allowPublicKeyRetrieval=true를 주지않아서 생기는 에러

옵션을 주면 해결됨

 

Spring DB 접속정보 예)

spring.datasource.url=jdbc:mysql://localhost:3306/SHOP_DB?useSSL=false&allowPublicKeyRetrieval=true

 

 

 

반응형

'DB > Mysql' 카테고리의 다른 글

Mysql - 시퀀스 생성  (0) 2020.07.07