zoukankan      html  css  js  c++  java
  • 异常"java.sql.SQLException: The server time zone value 'EDT' is unrecognized or represents more than one time zone."的问题解决方案

    异常:java.sql.SQLException: The server time zone value 'EDT' 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.

    服务器的时区值"EDT"无法识别,或表示多个时区,这种错误表示新版本的数据库连接程序需要指定UTC时区,只要再url后面加上指定的时区即可

    通常mysql返回的时间比实际时间总是早8小时,MySQL文档中,可用的时区都在/usr/share/zoneinfo目录下面,一般配置URL时,可以尝试GMT,GMT8,UTC+8,UTC0800等...

    jdbc配置异常:

    改正之后:

  • 相关阅读:
    学习进度条
    学术诚信与职业道德
    czxt
    操作系统
    04 17评论博客
    0414 结对 2.0 33 34
    0408 汉堡包
    (补)结对心得
    构建之法4读后感
    复利计算4.0
  • 原文地址:https://www.cnblogs.com/afeiiii/p/13795912.html
Copyright © 2011-2022 走看看