org.springframework.security.authentication.InternalAuthenticationServiceException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: The server time zone value '���ѹα� ǥ�ؽ�' 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 specific time zone value if you want to utilize time zone support.
Caused by: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: The server time zone value '���ѹα� ǥ�ؽ�' 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 specific time zone value if you want to utilize time zone support.
Caused by: com.mysql.cj.exceptions.InvalidConnectionAttributeException: The server time zone value '���ѹα� ǥ�ؽ�' 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 specific time zone value if you want to utilize time zone support
해결 방법은 간단하다.
application.properties에서 serverTimezone=UTC를 추가해줬다.
UTC는 '협정 세계시'다.
spring.datasource.url=jdbc:mysql://localhost:3306/board?useSSL=true&serverTimezone=UTC
참고 👇
반응형
'Languages > SQL' 카테고리의 다른 글
[Error] H2 데이터베이스 최신 버전 (0) | 2022.03.31 |
---|---|
[Error] Public Key Retrieval is not allowed (0) | 2022.03.29 |
[Error] Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column (0) | 2022.03.19 |
[Error] Data too long for column 'password' at row 1 (0) | 2022.03.16 |
[Error] Invalid use of NULL value (0) | 2021.08.06 |