gpt4 book ai didi

java - MySQL 连接器错误 "The server time zone value Central European Time"

转载 作者:可可西里 更新时间:2023-11-01 06:31:28 24 4
gpt4 key购买 nike

<分区>

我的问题

MySQL 连接器“服务器时区值中欧时间”无法识别或代表多个时区。

项目

小型网络项目:JavaEE、Tomcat 8.5、MySQL、Maven

我的尝试

  • Maven -> 将 MySQL 连接器从 6.x 更改为 5.1.39(无更改)
  • 修改 context.xml URL 更改

context.xml 中的连接

URL="jdbc: mysql://127.0.0.1:3306/rk_tu_lager?useLegacyDatetimeCode=false;serverTimezone=CEST;useSSL=false;

错误:

Caused by: com.mysql.cj.core.exceptions.InvalidConnectionAttributeException: The server time zone value 'Mitteleurop?ische Sommerzeit' 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.

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com