기록
Home
  • 분류 전체보기 (187)
    • Programming (109)
      • JAVA (15)
      • Javascript (0)
      • 데이터베이스 (8)
      • React (7)
      • 프레임워크 (1)
      • Spring (11)
      • 웹(Web) (4)
      • 운영체제 (5)
      • 서버&네트워크 (6)
      • 자료구조 (0)
      • 알고리즘 (1)
      • 형상관리 (0)
      • 에러노트 (35)
      • 개발 툴 (15)
      • TEMP. (1)
    • Project (0)
      • 트러블슈팅 (0)
    • Personal (1)
      • 리뷰 (1)
      • 업무 (0)
    • Course (0)
      • 모든 개발자를 위한 HTTP 웹 기본 지식 (1)
      • 스프링 핵심 원리 - 기본편 (51)
      • 자바 ORM 표준 JPA 프로그래밍 - 기본편 (21)
    • TEMP (0)
Home
  • 분류 전체보기 (187)
    • Programming (109)
      • JAVA (15)
      • Javascript (0)
      • 데이터베이스 (8)
      • React (7)
      • 프레임워크 (1)
      • Spring (11)
      • 웹(Web) (4)
      • 운영체제 (5)
      • 서버&네트워크 (6)
      • 자료구조 (0)
      • 알고리즘 (1)
      • 형상관리 (0)
      • 에러노트 (35)
      • 개발 툴 (15)
      • TEMP. (1)
    • Project (0)
      • 트러블슈팅 (0)
    • Personal (1)
      • 리뷰 (1)
      • 업무 (0)
    • Course (0)
      • 모든 개발자를 위한 HTTP 웹 기본 지식 (1)
      • 스프링 핵심 원리 - 기본편 (51)
      • 자바 ORM 표준 JPA 프로그래밍 - 기본편 (21)
    • TEMP (0)
블로그 내 검색

기록

  • Programming/에러노트

    [Spring Framework/MySQL] Public Key Retrieval is not allowed

    2022. 3. 10.

    by. 개발도비

    2021.5.15 작성

     

    Spring과 MySQL, MyBatis를 연동하던 중  Public Key Retrieval is not allowed이라는 오류가 발생했다

    나는 MySQL 8.0.24 버전을 쓰고 있는데 8.0버전 이후부터는 설정을 별도로 추가해줘야 한다고 한다

     

    1) MySQL과 MyBatis를 연동할 때 connection이 안 되는 경우 

    JDBC url에 allowPublicKeyRetrieval=true를 추가해주면 된다

     

     ex)  <property name="url" value="jdbc:mysql://127.0.0.1:3306/semo_db01?ㅁuseSSL=false&amp;allowPublicKeyRetrieval=true&amp;serverTimezone=UTC">

     

    +) 연결할 때 엔티티에 대한 참조에 주의하자. 연결해줄 때 &만 쓰면 안되고 &amp; 로 연결해줘야 한다

     

     

    2) DBeaver툴에서 connection이 안 되는 경우

    'Programming > 에러노트' 카테고리의 다른 글

    [MySQL/Workbench] Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column. To disable safe mode, toggle the option in Preferences -> SQL Editor and reconnect.  (0) 2022.03.10
    [Spring Framework/Junit] java.lang.NoClassDefFoundError: javax/servlet/SessionCookieConfig / Missing artifact javax.servlet:servlet-api:jar:3.1.0  (0) 2022.03.10
    [Spring Framework/Junit] java.lang.IllegalStateException: Failed to load ApplicationContext  (0) 2022.03.10
    [GIT] 원격 저장소에 push가 안 될 때 (Updates were rejected because the remote contains work that you do / Updates were rejected because the tip of your current branch is behind)  (0) 2022.03.10
    404 error : 폴더나 파일 이름은 공백이 없도록 지정하자  (0) 2022.03.09

    댓글

    관련글

    • [Spring Framework/Junit] java.lang.NoClassDefFoundError: javax/servlet/SessionCookieConfig / Missing artifact javax.servlet:servlet-api:jar:3.1.0 2022.03.10
    • [Spring Framework/Junit] java.lang.IllegalStateException: Failed to load ApplicationContext 2022.03.10
    • [GIT] 원격 저장소에 push가 안 될 때 (Updates were rejected because the remote contains work that you do / Updates were rejected because the tip of your current branch is behind) 2022.03.10
    • 404 error : 폴더나 파일 이름은 공백이 없도록 지정하자 2022.03.09
    맨 위로
전체 글 보기
Tistory 로그인
Tistory 로그아웃
로그아웃 글쓰기 관리

Today

Total

Powered by ⓒ Kakao Corp.

Designed by Nana
블로그 이미지
개발도비

티스토리툴바