【问题标题】:server timezone value 'X' is unrecognized or represents more than one timezone服务器时区值“X”无法识别或代表多个时区
【发布时间】:2016-08-31 18:16:53
【问题描述】:

我正在尝试对 MySQL 数据库(版本 5.6.17)使用 SchemaCrawler。我从 Windows CMD 运行的特定 SchemaCrawler 命令是:

schemacrawler.cmd -server=mysql -database=mydb -infolevel=minimum -command=list -loglevel=CONFIG -u=myname

从这个命令我得到:

... server timezone value 'X' is unrecognized or represents more than one timezone

X 是一个时区字符串,例如 ETD。

another question 中,答案似乎是在连接字符串中使用serverTimezone 参数。但是,就我而言,作为 SchemaCrawler 用户,我无法修改连接字符串。

我应该如何进行?

【问题讨论】:

  • 试试 /usr/local/mysql/bin/mysqld_safe --timezone=UTC

标签: java windows jdbc schemacrawler


【解决方案1】:

SchemaCrawler 提供了命令行的替代版本,您可以在其中使用您提到的other question 中描述的数据库连接 URL。只需将-database=mydb 替换为-url=...

Sualeh Fatehi,SchemaCrawler

【讨论】:

    猜你喜欢
    • 2016-10-09
    • 1970-01-01
    • 2018-09-06
    • 2021-07-24
    • 2020-04-16
    • 1970-01-01
    • 2019-12-04
    • 2019-02-26
    • 2020-03-05
    相关资源
    最近更新 更多