The server time zone value 'Öйú±ê׼ʱ¼ä' is.......时区错误解决方法

java.sql.SQLException: 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,按照如下图所示操作即可。

输入命令:show variables like '%time_zone%';(注意是英文状态下)

 我电脑的系统为北京时区,因此在系统中设置

命令:set global time_zone='+8:00';

猜你喜欢

转载自blog.csdn.net/weixin_39758376/article/details/83040168
今日推荐