错误:The server time zone value '�й���ʱ��' is unrecognized or represents more than one time zone
原因:1.使用原mysql5.1.38不会出现该问题
2.因使用了Mysql最新版驱动所以报错
解决方案:方案1、在项目代码-数据库连接URL后,加上 (注意大小写必须一致)
?serverTimezone=UTC
方案2、在mysql中设置时区,默认为SYSTEM
set global time_zone='+8:00'
注:转载于https://www.cnblogs.com/shanelau/p/7041293.html
网友评论