코딍코딍
코딩기록
코딍코딍
전체 방문자
오늘
어제
  • 분류 전체보기 (271)
    • 개발 (2)
    • Java (1)
    • 스프링 (28)
    • JPA (11)
    • Git (3)
    • 알고리즘 (160)
      • 백준 (132)
      • 프로그래머스 (8)
      • SWEA (20)
    • 토이 프로젝트 (14)
      • 간단한 Springboot CRUD (1)
      • 게시판 프로젝트 (13)
    • 알고리즘 개념정리 (8)
    • 오류 해결 (13)
    • 보류 (0)
    • AWS (5)
    • 트러블 슈팅 (0)
    • 회고 (3)
    • CS (4)

블로그 메뉴

  • 홈
  • 태그
  • 방명록

공지사항

최근 글

티스토리

hELLO · Designed By 정상우.
코딍코딍

코딩기록

오류 해결

Java Mysql 연동 시 오류 발생 : java.sql.SQLNonTransientConnectionException: Public Key Retrieval is not allowed

2023. 2. 13. 14:36

MySql 접속시 "Public Key Retrieval is not allowed" 오류 발생 시

allowPublicKeyRetrieval=true 옵션값을 설정하여 해결한다.

 

기존 접속 시 옵션

spring.datasource.url=jdbc:mysql://localhost:3306/board?useSSL=false&useUnicode=true&serverTimezone=Asia/Seoul

수정 ("&allowPublicKeyRetrieval=true&useSSL=false" 추가)

spring.datasource.url=jdbc:mysql://localhost:3306/board?useSSL=false&useUnicode=true&serverTimezone=Asia/Seoul&allowPublicKeyRetrieval=true&useSSL=false

'오류 해결' 카테고리의 다른 글

[JPA] More than one row with the given identifier was found: 1  (0) 2023.03.11
[Mysql] Cannot delete or update a parent row  (0) 2023.02.28
java.lang.StackOverflowError: null - @Data  (0) 2023.01.11
failed to lazily initialize a collection of role: could not initialize proxy - no Session  (0) 2023.01.11
[Spring Boot] Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. 에러  (0) 2022.12.20
    '오류 해결' 카테고리의 다른 글
    • [JPA] More than one row with the given identifier was found: 1
    • [Mysql] Cannot delete or update a parent row
    • java.lang.StackOverflowError: null - @Data
    • failed to lazily initialize a collection of role: could not initialize proxy - no Session
    코딍코딍
    코딍코딍
    ㅎ2

    티스토리툴바