首页 > 其他 > 详细

The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone.

时间:2019-09-04 09:10:32      阅读:68      评论:0      收藏:0      [点我收藏+]

这里记录一个测试新项目时遇到的一个老问题,以前就遇到了,总是不注意

 The server time zone value ‘Öйú±ê׼ʱ¼ä‘ is unrecognized or represents more than one time zone.

这里有一个简便的方式再记录一次加深印象:

原本:

jdbc.url = jdbc:mysql://localhost:3306/query?useUnicode=true&characterEncoding=utf-8

时区问题,改成下面的就好了

//localhost:3306/query?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF-8&useSSL=false

主要是要加上:serverTimezone=UTC

The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone.

原文:https://www.cnblogs.com/xk920/p/11456703.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!