首页 > 数据库技术 > 详细

解决java.sql.SQLException: The server time zone value '?й???????' is unrecognized or represents more than one time zone

时间:2020-02-14 21:07:22      阅读:62      评论:0      收藏:0      [点我收藏+]

错误描述:

使用JDBC连接数据库是产生错误

技术分享图片

应该是数据库时区问题,在url配置时设置serverTimezone = GMT即可

url = "jdbc:mysql://localhost:3306/student?serverTimezone = GMT";

 

解决java.sql.SQLException: The server time zone value '?й???????' is unrecognized or represents more than one time zone

原文:https://www.cnblogs.com/silentteller/p/12309492.html

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