服务器时区值 'X' 无法识别或代表多个时区

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

我正在尝试对 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 用户,我无法修改连接字符串。

我应该如何进行?

SchemaCrawler offers an alternate version of the command-line, where you can use the database connection URL as described in the other question 你提到的。只需将 -database=mydb 替换为 -url=....

Sualeh Fatehi,SchemaCrawler