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
반응형
'Computer Science > Database' 카테고리의 다른 글
[Python] MySQL connector를 이용한 Database 연결 (0) | 2021.03.09 |
---|---|
[DBMS] 관계형 DBMS의 개념과 NoSQL과의 비교 (0) | 2021.02.15 |
[Java] 자바 어플리케이션에서 데이터베이스에 접속하는 방법 (Java, JDBC API, JDBC driver, MySQL) (0) | 2021.02.10 |
[MySQL] Database 인덱스와 제약 조건 (Index, Constraint) (0) | 2021.02.09 |
[MySQL] 텍스트 검색 기능 (0) | 2021.02.09 |