首页 > 其他 > 详细

The server time zone value '?й???????' is unrecognized or represents more than one time zone 问题解决

时间:2020-06-13 19:09:02      阅读:39      评论:0      收藏:0      [点我收藏+]

报错如下:

java.sql.SQLException: The server time zone value ‘?й???????‘ is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the ‘serverTimezone‘ configuration property) to use a more specifc time zone value if you want to utilize time zone support.

 

技术分享图片

 

 

 

解决:

mysql连接地址加个配置:  &serverTimezone=UTC

1 #application.properties 配置文件
2 
3 #原配置
4 jdbc.url=jdbc:mysql://127.0.0.1:3306/oasys?useUnicode=true&characterEncoding=utf-8&useSSL=false
5 
6 
7 #新配置(增加 &serverTimezone=UTC)
8 jdbc.url=jdbc:mysql://127.0.0.1:3306/oasys?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=UTC

 

 

 

参考:

https://www.cnblogs.com/EasonJim/p/6906713.html 

java.sql.SQLException: The server time zone value ‘?й???????‘ is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the ‘serverTimezone‘ configuration property) to use a more specifc time zone value if you want to utilize time zone support.

The server time zone value '?й???????' is unrecognized or represents more than one time zone 问题解决

原文:https://www.cnblogs.com/whycai/p/13121286.html

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