用于解决以下问题

用myeclipse配置mysql数据库时显示: Error while performing database login with the mysgl driver: The server time zone value ‘obütex4Eta’ 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的解决办法

笔者在最近在按照网上的教程配置到连接数据库时碰到了麻烦,点击Test Driver时总弹出错误。
myeclipse配置mysql遇到的问题

在网上疯狂找寻解决办法,终于被我找到了,原因是数据库与系统时差导致连接中断

解决办法:

在Connection URL的末尾加上?serverTimezone=GMT

失败样例:jdbc:mysql://localhost:3306/test

改成以下样式

成功样例:jdbc:mysql://localhost:3306/test?serverTimezone=UTC

再重新点击Test Driver就会显示连接成功了
myeclipse配置mysql遇到的问题
如果我讲的表意不清,这是原作者的博客地址:
原作者的博客链接《《《

希望可以帮到大家,我是刚入门的新人,还有许多规矩不懂,如果冒犯的话,请联系删除。

2020.4.21.19:59

相关文章:

  • 2021-06-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-26
  • 2021-05-16
  • 2021-04-17
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2018-07-23
  • 2021-06-12
  • 2022-12-23
  • 2021-05-15
  • 2021-07-09
相关资源
相似解决方案