启动时出现问题

来源:6-1 关于红包收发之操作数据库(上)

weixin_慕婉清4554212

2019-07-21

启动时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 specifc time zone value if you want to utilize time zone support.

写回答

2回答

慕工程6426586

2019-09-24

时区问题 在mysql运行 set global time_zone='+8:00';
就可以解决了

1
0

精慕门7574427

2019-07-23

因为版本不匹配

解决:url: jdbc:mysql://127.0.0.1:3306/luckmoney?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC

1
1
炫德基
这样设置了还是会出现这个问题 我用的mysql版本的,两个dev和pro都设置了,还是会出现这个问题,我的idea用的是社区版的
2019-08-09
共1条回复

2小时快速上手Spring Boot

一切为了效率!两个小时学习SpringBoot,为你省时省力Get干货

11582 学习 · 249 问题

查看课程