1. 程式人生 > >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. 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