码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2020-06-13 18:54:41      阅读:73      评论:0      收藏:0      [点我收藏+]

标签:coding   value   amp   The   mys   报错   mic   must   configure   

报错如下:

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 问题解决

标签:coding   value   amp   The   mys   报错   mic   must   configure   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!