使用JDBC连接数据库出现 The server time zone value ‘�й���ʱ��‘ is unrecognized or represents more than one解决方案
2020-07-22 23:57
507 查看
在 jdbc.properties 文件中的 url 后面加上 ?serverTimezone=UTC
加入之前的jdbc.properties文件:
user=root
password=12345678
url=jdbc:mysql://localhost:3306/test
driverClass=com.mysql.cj.jdbc.Driver
加入之后:
user=root
password=12345678
url=jdbc:mysql://localhost:3306/test?serverTimezone=UTC
driverClass=com.mysql.cj.jdbc.Driver
加入之后就可以解决问题,别问我,我也不懂,加上以后确实不会报错了
相关文章推荐
- JDBC连接错误:The server time zone value '��' is unrecognized or represents more than one time zone.
- ideal连接数据库报错The server time zone value ‘�й���ʱ��’ is unrecognized or represents more than one time
- 连接数据库:ERROR: 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 ‘�й���ʱ��’ is unrecognized or represents more than one
- mysql连接异常:The server time zone value '�й���ʱ��' is unrecognized or represents more than one time zo
- mysql-8.0.11 jdbc连接数据库 The server time zone value ‘�й���ʱ��’ is unrecognized or represents more… 错误
- JDBC:The server time zone value '�й���ʱ��' is unrecognized or represents more than one time zone.
- mysql出现错误:The server time zone value is unrecognized or represents more than one time zone
- jdbc连接数据库 The server time zone value '�й���ʱ��' is unrecognized or represents more... 错误
- 【异常】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
- The server time zone value '�й���ʱ��' is unrecognized or represents more than one time zone. You m
- 巨坑: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 '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问题解决
- 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.