您的位置:首页 > 产品设计 > UI/UE

mysql连接异常:The server time zone value '�й���׼ʱ��' is unrecognized or represents more than one time zo

2017-08-15 16:23 871 查看
错误信息如下:

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。。。

错误原因:mysql识别时区出现错误,这是因为访问的url中没有指定时区为UTC

出错误的url:

jdbc.url=jdbc:mysql://localhost:3306/seckill?useUnicode=true&characterEncoding=utf8


在后面添加时区的参数数即可:

jdbc.url=jdbc:mysql://localhost:3306/seckill?useUnicode=true&characterEncoding=utf8&serverTimezone=UTC
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐