JDBC连接mysql出现时区错误
The server time zone value ... is unrecognized ...
处理方法
- 在Java代码连接mysql语句的url后面添加
?useSSL=true&serverTimezone=UTC
- 打开my.ini,在mysqld下面输入
default-time-zone='+8:00'
2024-01-18 19:45:04
The server time zone value ... is unrecognized ...
处理方法
?useSSL=true&serverTimezone=UTC
default-time-zone='+8:00'