[MySQL] The server time zone value is unrecognized or represents more than one time zone 오류

홍정완·2022년 3월 25일
0

intelliJ

목록 보기
11/12
post-thumbnail

IntelliJ에서 local MySQL 서버에 연결하던 중 위와 같은 오류 발생


  • MySQL Workbench 환경에서 시도





1. MySQL GLOBAL 및 SESSION time zone 값 확인

SELECT @@GLOBAL.time_zone, @@SESSION.time_zone;



2. 서버 시간대 설정

SET GLOBAL time_zone = '+9:00';  
SET time_zone = '+9:00';



3. JDBC URL 설정

ex) jdbc:mysql://localhost:3306/DB?serverTimezone=Asia/Seoul





Intellij DB Navigator Connection 해결

profile
습관이 전부다.

0개의 댓글