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