반응형
250x250
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- Flux
- Kafka
- Spring Error
- kubeflow
- or some instances in your deployment group are experiencing problems.
- IntelliJ
- Python
- java bigdecimal
- docker
- chart.js
- codedeploy error
- SQL
- codepipeline
- Jenkins
- Spring
- JavaScript
- Airflow
- codebuild
- aws cicd
- chartjs
- VPN
- codedeploy
- redis
- aws
- node
- AWS CI/CD 구축하기
- bootstrap
- COALESCE
- PostgreSQL
- 도커
Archives
- Today
- Total
Small Asteroid Blog
[MySQL/Intellij] Public key retrieval is not allowed 에러 해결 본문
728x90
에러 원인
Mysql DB 에 접속시도를 했는데 Public key retrieval is not allowed 에러가 나면서 DB에 접속이 안되었다.
Mysql 8.0 버전 부터 보안적인 이슈로 useSSL 옵션에 대한 추가적인 설정이 필요해졌다.
useSSL=false 로 설정되어 있는지,
allowPublicKeyRetrieval 설정이 되어 있는지 확인해본다.
해결
만약 다음과 같은 에러가 난다면 두가지 옵션에 대해서 추가 및 변경해준다.
접속하는 datasource URL에 아래와 같이 설정해준다.
jdbc:mysql://localhost:port/database?useSSL=false&allowPublicKeyRetrieval=true
useSSL : DB에 SSL로 연결
allowPublicKeyRetrieval : 서버에서 RSA 공개키를 검색하거나 가져와야 하는지
Intellij 에서 HikariDataSource 사용해서 DB 접속하기

728x90
반응형
'백엔드 > DB' 카테고리의 다른 글
[Mysql] 데이터 삭제하기 & AUTO INCREMENT 초기화 - DELETE, TRUNCATE, DROP (0) | 2024.08.01 |
---|---|
[Mysql] Docker 환경에서 mysql 설치 후 접속 에러 - Access denied for user 'root'@'172.17.0.1' (using password: YES) (0) | 2023.12.12 |
[SQL] MySQL 5.7버전과 8.0버전 차이점, 8.0 업그레이드 (0) | 2023.09.14 |
[SQL] IN, EXISTS 비교 및 속도 비교 (0) | 2023.09.10 |
[DB] MySQL 샘플 데이터 (0) | 2023.09.02 |