여러가지/Database
[MySql & Mariadb] spring boot jdbc DB연결시 에러 jdbs mysql RSA public key is not available client side (option serverRsaPublicKeyFile not set)
포스트it
2022. 3. 2. 17:52
728x90
반응형
오류내용(에러메세지)
jdbs mysql RSA public key is not available client side (option serverRsaPublicKeyFile not set)
spring boot 에서 jdbc 연결중 이러한 에러가 발생하였는데,
검색해서 확인해보니
# application.properties (main -> resources -> application.properties)
파일에서 DB연결 하는곳에 ?allowPublicKeyRetrieval=true&useSSL=false
문장을 추가해주시면 에러메세지가 사라집니다 !!
EX)
spring.datasource.url=jdbc:mariadb://127.0.0.1:3306/board?allowPublicKeyRetrieval=true&useSSL=false
이런식으로 추가해주면 위 에러가 사라진다.
728x90
반응형