선 조치 후 분석

[JDBC] the last packet sent successfully to the server was 0 milliseconds ago 본문

카테고리 없음

[JDBC] the last packet sent successfully to the server was 0 milliseconds ago

JB1104 2022. 11. 18. 13:51
728x90
반응형
SMALL

ERROR : the last packet sent successfully to the server was 0 milliseconds ago 

 

MySQL은 SSL 설정이 default가 true인데, SSL 연결을 한다는 설정을 false로 변경해줘야 한다.

 

Resolve : DB URL뒤에 'useSSL=false' 추가해주면 된다.

파라미터가 여러 개라면 '&' 연결해준다.

 

변경 전

ds.setUrl("jdbc:mysql://localhost/new_schema?characterEncoding=utf8");

변경 후

ds.setUrl("jdbc:mysql://localhost/new_schema?characterEncoding=utf8&useSSL=false");

 

728x90
반응형
LIST