본문 바로가기

개발(IT)/DB

[개발/MYSQL] JDBC MYSQL 연동 에러 (Client version)

728x90
반응형

다른 사람의 프로젝트를 Github에서 다운받아 MYSQL DB연동을 하는 과정에서 아래와 같은 오류가 발생하였다.

 

Client does not support authentication protocol requested by server; consider upgrading MySQL client

*MYSQL VERSION : 8.0.18

 

대부분 블로그에 해결 방법으로는 해결이 되지 않아, 글을 작성하게 되었다.

시도해봤던 해결방법은 아래와 같다.

실행쿼리1) update user set password=old_password('비밀번호') where user='root';

에러발생) Error Code: 1146. Table 'groupware.user' doesn't exist 0.000 sec

 

실행쿼리2) update mysql.user set password=old_password('비밀번호') where user='root';

에러발생) Error Code: 1054. Unknown column 'password' in 'field list' 0.000 sec
 

원인을 알 수가 없어 계속 구글링하다가 해결할 수가 있었습니다.

 

실행쿼리3) ALTER USER root@localhost IDENTIFIED WITH  mysql_native_password BY '비밀번호' ;

에러발생 없이 쿼리가 실행되었고, 서버 리스타트하여 DB연결 오류없이 실행되었습니다 :)

 

"잘못된 부분이나 궁금하신 점은 언제든지 댓글 달아주세요."

728x90
반응형