Mysql database connection

Kang JaeHyeon·2024년 6월 18일

아래와 같은 url을 사용하여 DBeaver에서 mysql database를 연결하려 했는데 오류가 발생했다.

jdbc:mysql://localhost:3306/mydb

Public Key Retrieval is not allowed

mysql 8.0이상 보안 설정에 관한 오류로

jdbc:mysql://localhost:3306/yestory?allowPublicKeyRetrieval=true
MySQL 클라이언트가 서버로부터 공용 키(public key)를 받아올 수 있도록 허용하는 설정

url 뒤에 allowPublicKeyRetrieval=true 옵션을 추가해 주어 해결

0개의 댓글