The server time zone value '�й���׼ʱ��' is unrecognized or represents more than one time zone

1、错误原因:
使用原mysql5.1.38不会出现该问题
因使用了Mysql最新版驱动所以报错

2、解决方案:
方案1、在项目代码-数据库连接URL后, 加上 (注意大小写必须一致)
?serverTimezone=UTC


方案2、在mysql中设置时区,默认为SYSTEM
set global time_zone='+8:00'





猜你喜欢

转载自blog.csdn.net/weixin_41908757/article/details/80283015