Mysql8.0.16 连接包报错解决方法

Mysql8.0.16 连接包报错解决方法

Mysql8.0 .16连接包报错:
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…

从错误即可知道是时区的错误,因此只要将时区设置为你当前系统时区即可, 因此使用root用户登录mysql,按照如下图所示操作即可。
在这里插入图片描述 我电脑的系统为北京时区,因此在系统中设置后,再连接数据库运行,一切OK!