Notice
Recent Posts
Recent Comments
Link
«   2025/04   »
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30
Archives
Today
Total
관리 메뉴

Coding Bloom

DB연결 Access denied for user 'root'@'localhost' (using password: yes) 본문

Java Spring

DB연결 Access denied for user 'root'@'localhost' (using password: yes)

제컴퓨터에서는 2022. 9. 16. 13:04

DB 연결 했는데 에러가 떴다.

org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: RSA public key is not available client side (option serverRsaPublicKeyFile not set)

RSA public Key is net available client side..?

 

일단 구글검색... 

allowkey 어쩌고 세팅이 안돼어있다?.. db이름뒤에 ?allowkey 어쩌구 토근을 줘라..? OK알겠음..일단 붙여서 실행..

 

새로운 에러 탄생

JDBC Connection에러 

Access denied for user 'root'@'localhost' (using password: yes)

DB에 접속할수 없다는 에러 인데 구글 검색을 하다가 내 상황이 아닌 오류가 많아서 그냥 같은 직원에게 물어봤다.

 

서버에대한 이해가 부족해서 생긴 에러였음.

localhost=> 내자신 을말하는건데 해당 url을 타고가면 kitri라는 DB가 없으니 에러가난것.. 위의 RSA public Key도 마찬가지..

kitri DB가 존재하는곳은 넥스포서버인데 

http://oktadev.rain4rest.com/phpMyAdmin/ 요기... 주소는 1.234.5.238

url 주소를 여기로 줘야 kitri DB를 타고 데이터조회가 가능했다..

 

 

DB세팅 상태

이상태였으니 localhost 내컴퓨터..서버만 존나게 뒤진거다..

넥스포서버 주소를 적어주니 데이터 조회 완료... ! ! 

'Java Spring' 카테고리의 다른 글

MyBatis 동적변수생성 <bind>  (0) 2022.10.24
VO, DTO, DAO, SERVICE, CONTROLLER..  (0) 2022.10.21
또 Spring DB Access Denied..............  (0) 2022.10.20
Restful API  (0) 2022.05.18
RESTful API 개념 정리  (0) 2022.04.14
Comments