mysql8.0时区问题

#报错为: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.

解决方法
在mysql解压路径下的my.ini文件的 [mysqld]节点下加上default-time-zone=’+8:00’
把时区改为中国的

记得重启mysql服务

你可能感兴趣的:(mysql)