首页 > 其他 > 详细

The server time zone value '?й???????' is unrecognized or represents more than one time zone 。

时间:2019-05-30 14:11:57      阅读:129      评论:0      收藏:0      [点我收藏+]

The server time zone value ‘?й???????‘ is unrecognized or represents more than one time zone。

今天有Mysql的时候遇到了这个错误,应该是时区错误,具体不懂,解决方案:

1、创建数据库连接时的url:"jdbc:mysql://127.0.0.1:3306/db1?serverTimezone=UTC"   也就是相对于加上了  ?serverTimezone=UTC

但既然是在项目里加的,应该就指针对该项目。所以:

2、执行sql语句:set global time_zone=‘+8:00‘ 

The server time zone value '?й???????' is unrecognized or represents more than one time zone 。

原文:https://www.cnblogs.com/zhangyuhao/p/10949186.html

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