mysql8.0.11运行报The server time zone value '?D1ú±ê×?ê±??' is unrecognized or represents more ..解决办法

具体错误: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 utili

出现这个错误的主要原因是mysql时区设置错误;

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

show variables like '%time_zone%';

set global time_zone='+8:00';

mysql8.0.11运行报The server time zone value '?D1ú±ê×?ê±??' is unrecognized or represents more ..解决办法_第1张图片

 

你可能感兴趣的:(数据库)