[MySQL 8] Public Key Retrieval is not allowed

2023. 1. 19. 12:41·Etc/TroubleShooting
반응형

MySQL 8버전부터 url, user, password를 제외하고도 useSSL 옵션에 대한 설정이 필요해졌습니다.

 

기존 :

jdbc:mysql://localhost:3306/dbtest

 

해결 : 

jdbc:mysql://localhost:3306/dbtest?useSSL=false&allowPublicKeyRetrieval=true

 


위에 문제를 해결하니 또다른 오류 발생...

 

java.sql.SQLException: The server time zone value 'KST' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the 'serverTimezone' configuration property) to use a more specific time zone value if you want to utilize time zone support. 

 

이건 이제 커넥터 문제인데, 커넥터 5.1 이상부터는 시스템 기본 timezone을 사용하지 않는다고 합니다. 명시적으로 timezone을 설정해주어야 문제를 해결 할 수 있다고 하네요.

 

기존 : 

jdbc:mysql://localhost:3306/dbtest?useSSL=false&allowPublicKeyRetrieval=true

 

해결 : 

jdbc:mysql://localhost:3306/dbtest?useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Seoul

 

반응형
저작자표시 (새창열림)

'Etc > TroubleShooting' 카테고리의 다른 글

DB 연동 jsp 파일  (0) 2023.02.10
[MySQL 8] 권한부여  (0) 2023.02.10
systemctl start rc-local 오류  (0) 2023.01.17
HTTPD 404 Not Found  (0) 2023.01.17
available:rsa-sha2-512, rsa-sha2-256  (0) 2023.01.04
'Etc/TroubleShooting' 카테고리의 다른 글
  • DB 연동 jsp 파일
  • [MySQL 8] 권한부여
  • systemctl start rc-local 오류
  • HTTPD 404 Not Found
nyub
nyub
  • nyub
    xinyub cloud
    nyub
  • 전체
    오늘
    어제
    • 전체 글 (165)
      • Cloud (17)
        • AWS (12)
        • KT (3)
        • NHN (2)
      • IT (131)
        • Network (22)
        • Linux (41)
        • Windows server (30)
        • Docker (9)
        • Terraform (5)
        • Git, Github (3)
        • Kubernetes (9)
        • CI CD (11)
        • 기타 (1)
      • Etc (17)
        • TroubleShooting (12)
        • Other Info (4)
        • 자격증 (1)
  • 반응형
  • hELLO· Designed By정상우.v4.10.3
nyub
[MySQL 8] Public Key Retrieval is not allowed
상단으로

티스토리툴바