The server time zone value is unrecognized or repr

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了The server time zone value is unrecognized or repr相关的知识,希望对你有一定的参考价值。

异常信息:

The server time zone value 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.

异常原因:

新特性;
mysql6的版本特性。

解决方法:

connectionURL后面需要加上
&serverTimezone=GMT%2B8

以上是关于The server time zone value is unrecognized or repr的主要内容,如果未能解决你的问题,请参考以下文章

MySQLjava.sql.SQLException: The server time zone value

The server time zone value is unrecognized or repr

The server time zone value is unrecognized or repr

The server time zone value '?й???????' is unrecognized or represents more than one time zone

连接mysql报错:The server time zone value ‘‘ is unrecognized or represents more than one time zone.

连接mysql报错:The server time zone value ‘‘ is unrecognized or represents more than one time zone.