java报错The server time zone value '?§???????' is unrecognized or represents more than one time zone.

ERROR: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.

出现这种错误一般是JDBC驱动版本的原因是mysql时区设置出现错误。

可以直接换用低版本的MySQL jdbc驱动就不会存在时区的问题。

或者使用root用户登录mysql,按照如下图所示操作即可。

show variables like '%time_zone%';

set global time_zone='+8:00';

java报错The server time zone value '?§???????' is unrecognized or represents more than one time zone._第1张图片

你可能感兴趣的:(java报错The server time zone value '?§???????' is unrecognized or represents more than one time zone.)