
使用IDEA编辑连接JDBC数据时,出现了如下错误:
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 specific time zone value if you want to utilize time zone support.
解决方法:
在自己的URL路径后面添加如下内容
?serverTimezone=UTC&useUnicode=true&characterEncoding=utf8
如图所示:

问题解决!
本文介绍了解决IDEA连接JDBC时出现的时区配置错误问题的方法。通过在URL路径中添加特定参数,成功解决了The server timezone value '�й���ʱ��' is unrecognized的错误。
454

被折叠的 条评论
为什么被折叠?



