首页 > 数据库技术 > 详细

com.mysql.cj.exceptions.InvalidConnectionAttributeException: The server time zone value '?й???????' is unrecognized or represents more than one time zone.

时间:2020-01-13 15:14:29      阅读:115      评论:0      收藏:0      [点我收藏+]

技术分享图片

 

 

主要是配置mysql数据库的时候没有配置时区,修改:

jdbc:mysql://localhost:3306/auto_test?serverTimezone=UTC&useUnicode=true&characterEncoding=utf-8

serverTimezone=GMT%2B8 (格林尼治标准时间,曾是世界时)

也可以设置成其它时区如UTC(协调世界时,现作为世界标准时间使用)

com.mysql.cj.exceptions.InvalidConnectionAttributeException: The server time zone value '?й???????' is unrecognized or represents more than one time zone.

原文:https://www.cnblogs.com/saifei1125/p/12187258.html

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