엄지월드

dbeaver RSA public key is not available client side (option serverRsaPublicKeyFile not set) 본문

Server&DevOps/Database

dbeaver RSA public key is not available client side (option serverRsaPublicKeyFile not set)

킨글 2022. 10. 28. 14:31
반응형

maria db 설치 후 Test Connection 시 아래 에러를 마주하였다.

원래는 비밀번호가 틀렸을 때에 발생하는 에러인데, 비밀번호를 정상적으로 입력해도 동일하게 발생하였다.

RSA public key is not available client side (option serverRsaPublicKeyFile not set)

 

[1] DBeaver 해결 방법

그래서 찾아본 결과 Driver properties 탭에서 allowPublicKeyRetrieval을 false에서 true 로 변경해주면 접속이 가능해진다고 한다.

코드로 입력 시 아래와 같이 입력해주면 된다.

jdbc:mysql://localhost:3306/database?allowPublicKeyRetrieval=true

 

성공

[2] application.yml 해결 방법

만약, application.yml 에서 수정해주고 싶으면 아래와 같이 해주면 된다.

url: jdbc:mariadb://localhost:3306/lms?allowPublicKeyRetrieval=true&useSSL=false

만약, application.properties 파일이면 아래와 같이 입력해주면 된다.

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

 

Comments