DB/Mysql

[Mysql] Public Key Retrieval is not allowed Error

하나만알자 2022. 4. 2. 14:10
반응형

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

 

 

 

반응형