The server time zone value '?й???????' is unrecognized or represents more than one time zone
Posted whycai
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了The server time zone value '?й???????' is unrecognized or represents more than one time zone相关的知识,希望对你有一定的参考价值。
报错如下:
java.sql.SQLException: 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连接地址加个配置: &serverTimezone=UTC
1 #application.properties 配置文件 2 3 #原配置 4 jdbc.url=jdbc:mysql://127.0.0.1:3306/oasys?useUnicode=true&characterEncoding=utf-8&useSSL=false 5 6 7 #新配置(增加 &serverTimezone=UTC) 8 jdbc.url=jdbc:mysql://127.0.0.1:3306/oasys?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=UTC
参考:
https://www.cnblogs.com/EasonJim/p/6906713.html
java.sql.SQLException: 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.
以上是关于The server time zone value '?й???????' is unrecognized or represents more than one time zone的主要内容,如果未能解决你的问题,请参考以下文章
MySQLjava.sql.SQLException: The server time zone value
The server time zone value is unrecognized or repr
The server time zone value is unrecognized or repr
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.
连接mysql报错:The server time zone value ‘‘ is unrecognized or represents more than one time zone.