The server time zone value '�й���׼ʱ��' is unrecognized or represents more than one time zone.

使用mysql出现如下错误

解决方案

在数据库连接字符串指定time zone

jdbc:mysql://127.0.0.1:3306/test?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai

posted @ 2019-11-13 13:26  zxymapper  阅读(94)  评论(0编辑  收藏  举报