The server time zone value '�й���ʱ��' is unrecognized or represents more than one time zone
2018-04-02 10:29
1156 查看
错误环境:
mysql版本:5.7错误原因:
使用原mysql5.1.38不会出现该问题因使用了Mysql最新版驱动所以报错
解决方案:
方案1、在项目代码-数据库连接URL后,加上 (注意大小写必须一致)?serverTimezone=UTC
方案2、在mysql中设置时区,默认为SYSTEM
set global time_zone = '+8:00';
相关文章推荐
- The server time zone value 'EDT' is unrecognized or represents more than one time zone.
- Mysql错误:The server time zone value is unrecognized or represents more than one time zone
- The server time zone value '�й���ʱ��' is unrecognized or represents more than one time zone. You mu
- 连接数据库:ERROR: The server time zone value '�й�' is unrecognized or represents more than one time zone
- The server timezone value 'UTC' is unrecognized or represents more than one timezone
- mysql出现错误:The server time zone value is unrecognized or represents more than one time zone
- The server time zone value '�й���ʱ��' is unrecognized or represents more than one time zone. You m
- Mysql错误:The server time zone value is unrecognized or represents more than one time zone
- The server time zone value '?й???????' is unrecognized or represents more than one time zone. You mu
- mysql连接异常:The server time zone value '�й���ʱ��' is unrecognized or represents more than one time zo
- bug: The server time zone value '�й���ʱ��' is unrecognized or represents more than one time zone.
- 数据库连接 The server time zone value '�й���ʱ��' is unrecognized or represents more than one time zone.
- The server time zone value 'PDT' is unrecognized or represents more than one time zone
- The server time zone value '�й���ʱ��' is unrecognized or represents more than one time zone. You mu
- The server time zone value '�й���ʱ��' is unrecognized or represents more than one time zone.
- The server timezone value 'xxx' is unrecognized or represents more than one time
- java.sql.SQLException: The server time zone value '?й???????' is unrecognized or represents more
- 异常:java.sql.SQLException: The server time zone value '?й???????' is unrecognized or represents more
- The server time zone value '?泄???????' is unrecognized or represents more t
- 连接MySQL时区bug: The server time zone value '�й���ʱ��' is unrecognized or represents more