failed: Could not create connection to database server. Attempted reconnect 3 times. Giving up

By | 2021년 11월 21일
Table of Contents

failed: Could not create connection to database server. Attempted reconnect 3 times. Giving up

failed: Could not create connection to database server. Attempted reconnect 3 times. Giving up

mysql-connector-java 5.1.X 버전 이후로 KST 를 인식못하는 오류가 있다.

jdbc:mysql://nb.skyer9.pe.kr:3306/?serverTimezone=UTC

또는, 기존 운영중인 서버라면 아래와 같이 Asia/Seoul 로 설정해 준다.
jdbc:mysql://nb.skyer9.pe.kr:3306/?serverTimezone=Asia/Seoul

타임존을 UTC 또는 Asia/Seoul 로 지정해야 정상적으로 연결된다.
또는 커넥터를 낮은 버전으로 해도 된다.

우리나라에서만 문제되는 버그라 검색도 잘 않된다.
상당히 애매한게…
4-5년에 한번씩 당하는 오류라…
기억하기도 어렵다.

답글 남기기