Computer Science/Database

[Error] java.sql.SQLException: The server time zone value 'KST' is unrecognized

2021. 2. 10. 11:02

Problem

java.sql.SQLException: The server time zone value 'KST' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone value if you want to utilize time zone support.

 

Solution

// String url = "jdbc:mysql://IP 주소/testDB?serverTimezone=Asia/Seoul";
String url = "jdbc:mysql://IP 주소/testDB?serverTimezone=UTC";

아래 url을 사용하면 문제가 해결된다.

Reference

 

 

728x90
반응형