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

时间:2016-08-31 18:16:53

标签: java windows jdbc schemacrawler

I'm trying to use SchemaCrawler against a MySQL database (version 5.6.17). The specific SchemaCrawler command I'm running from Windows CMD is:

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

From this command I'm getting:

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

Where X is a timezone string like ETD.

In another question, answer seems to be using serverTimezone parameter in the connection string. But, In my case, as a SchemaCrawler user, I cannot modify the connection string.

How should I proceed?

1 个答案:

答案 0 :(得分:0)

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

Sualeh Fatehi,SchemaCrawler