首页 > 其他 > 详细

项目启动报错 The server time zone value '?й???????' is unrecognize...

时间:2020-04-11 10:21:57      阅读:72      评论:0      收藏:0      [点我收藏+]

背景介绍:

把项目在新的电脑上运行,MySQL版本不同出现错误

错误:

报错The server time zone value ‘?й???????‘ is unrecognized or represents more than one time zone. You must...

原因:

是使用了Mysql Connector/J 6.x以上的版本,然后就报了时区的错误

解决方法:

在配置url的时候不能简单写成 :

jdbc.url=jdbc:mysql://localhost:3306/demo?useUnicode=true&characterEncoding=utf8&useSSL=false

改写成 :

jdbc.url=jdbc:mysql://localhost:3306/demo?serverTimezone=UTC&useUnicode=true&characterEncoding=utf8&useSSL=false

项目启动报错 The server time zone value '?й???????' is unrecognize...

原文:https://www.cnblogs.com/wangxue1314/p/12677729.html

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