解决:java.sql.SQLException: The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents...的问题

在MySQL的安装文件夹中搜索my.ini文件,在最后添加一句

default-time_zone = '+8:00'

添加后重启MySQL服务,使用命令

show variables like '%time_zone%';

进行验证

posted @ 2019-08-06 16:09  朝朝暮暮dx  阅读(130)  评论(0)    收藏  举报