mysql time zone时区的错误解决

错误提示:

The server time zone value ‘Öйú±ê׼ʱ¼ä’ is unrecognized or represents more than one time zone

cmd下输入如下命令进行操作:
//登录
mysql -u root -p

//查看mysql系统时间。和当前时间做对比
select now();

//查看系统时区
show variables like ‘%time_zone%’;

// 设置时区,更改为东八区
set global time_zone = ‘+8:00’;

// 刷新权限
flush privileges;

转自:https://www.cnblogs.com/arxive/p/10332254.html

你可能感兴趣的:(Java)