[Spring Error] MySQLNonTransientConnectionException: Client does not support authentication protocol requested by server; consider upgrading MySQL client [duplicate]

2021. 2. 1. 16:10·Error code 모음/5. JAVA, Spring errors
반응형

1. 에러의 원인


해당 에러는 연결하는 DB (MySQL, Oracle 등의 사용하고 있는 DB) 의 version 과 

스프링 Maven 의 pom.xml 의 <dependency> 기입한 버전이 다를 경우 많이 발생하는 것 같다

 


 

2. 해결 방법(MySql 기준으로)


1) 사용하고 있는 mysql 로 들어가서 SELECT version( ); 으로 버전을 확인한다.

 

 

2) 체크한 Mysql 의 버전과 Maven 프로젝트 pom.xml 에 기입한 정보가 같은지 확인한다.

( 나의 경우에는 이 부분에서 dependency 에 기입한 mysql 버전이 달라서 에러가 발생하는 것이었다.)

 

 

3) pom.xml 에  dependency 로 version 을 수정해준다

<dependency>
   <groupId>mysql</groupId>
   <artifactId>mysql-connector-java</artifactId>
   <version>[수정하고자 하는 버전]</version>
</dependency>

 

3. 참고 링크


stackoverflow.com/questions/50505042/mysqlnontransientconnectionexception-client-does-not-support-authentication-pro

 

MySQLNonTransientConnectionException: Client does not support authentication protocol requested by server; consider upgrading My

Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Client does not support authentication protocol requested by server; consider upgrading MySQL client at java.bas...

stackoverflow.com

 

반응형
저작자표시 비영리 변경금지 (새창열림)

'Error code 모음 > 5. JAVA, Spring errors' 카테고리의 다른 글

[Spring Error] Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set  (0) 2021.02.13
[Spring Error] The server time zone value is unrecognized or represents more than one time zone 에러  (0) 2021.02.01
[Spring Error] nested exception is java.lang.NoClassDefFoundError: org/springframework/jdbc/datasource/TransactionAwareDataSourceProxy  (0) 2021.02.01
[JAVA Error] The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path  (0) 2021.01.28
[Spring Error] warning: Not generating hashCode: One of equals or hashCode exists. You should either write both of these or none of these (in the latter case, lombok generates them).  (0) 2021.01.13
'Error code 모음/5. JAVA, Spring errors' 카테고리의 다른 글
  • [Spring Error] Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set
  • [Spring Error] The server time zone value is unrecognized or represents more than one time zone 에러
  • [Spring Error] nested exception is java.lang.NoClassDefFoundError: org/springframework/jdbc/datasource/TransactionAwareDataSourceProxy
  • [JAVA Error] The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
쟈누
쟈누
Ad astra per aspera
    반응형
  • 쟈누
    쟈누의 기록공간
    쟈누
  • 전체
    오늘
    어제
    • 분류 전체보기 (444)
      • AWS (31)
        • Glue (4)
        • S3 (1)
      • 클라우드 (0)
      • Data Engineering (37)
        • GitHub (10)
        • NiFi (11)
        • Spark (10)
        • Snowflake (0)
        • 머신러닝, AI (6)
      • 언어 (118)
        • 데이터 베이스 (42)
        • JAVA (9)
        • Python (34)
        • Java Script (15)
        • Linux (18)
      • 프로젝트, 인강 그리고 책 (30)
        • Spotify Project (7)
        • RASA chatbot Project (9)
        • Naver shopping Project (6)
        • 빅데이터를 지탱하는 기술 (8)
      • OLD (56)
        • IT 용어 사전 (13)
        • Front End (12)
        • Back End (31)
      • Error code 모음 (165)
        • 1. SQL errors (17)
        • 2. Hadoop errors (20)
        • 3. Linux Errors (14)
        • 4. Python errors (33)
        • 5. JAVA, Spring errors (41)
        • 6. Jav Script errors (10)
        • 7. Dev Tools errors (9)
        • 8. Git errors (8)
        • 9. Jenkins Errors (4)
        • 10. airflow Errors (2)
        • 11. Aws errors (7)
      • 개인 (1)
        • 책 (1)
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
    • 블로그 관리
    • 글쓰기
  • 링크

  • 공지사항

    • 간단한 블로그 소개
  • 인기 글

  • 태그

    linux
    API
    python error
    SQL
    java
    파이썬
    node
    AWS
    NiFi
    리눅스
    자바
    MySQL
    error
    에러
    Spring
    json
    Git
    설치
    Python
    install
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.3
쟈누
[Spring Error] MySQLNonTransientConnectionException: Client does not support authentication protocol requested by server; consider upgrading MySQL client [duplicate]
상단으로

티스토리툴바