eclipse中控制台报错
通过命令查看并修改当前时区
show variables like '%time_zone%';
mysql> show variables like '%time_zone%';
+------------------+--------+
| Variable_name | Value |
+------------------+--------+
| system_time_zone | CST |
| time_zone | SYSTEM |
+------------------+--------+
2 rows in set (0.00 sec)
set global time_zone = '+8:00';
设置时区为东八区
flush privileges;
刷新权限
退出重新登录就可以了