连接mysql报错:The server time zone value ‘‘ is unrecognized or represents more than one time zone.
Posted zhangphil
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了连接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. 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.
原因是application.yml在配置datasource的url时候,url里面没有时区设置。
解决方法,在url里面拼接上:
serverTimezone=UTC
以上是关于连接mysql报错:The server time zone value ‘‘ is unrecognized or represents more than one time zone.的主要内容,如果未能解决你的问题,请参考以下文章
连接mysql报错Caused by: com.mysql.cj.exceptions.InvalidConnectionAttributeException: The server time zon
连接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.
java连接MySQL运行报错The server time zone value 'Öйú±ê×¼Ê
连接mysql报错java.sql.SQLException: The server time zone value '?й???????' is unrecognized...解决方
(图形界面)Dbever连接MySQL8 报错mysql8 安装The server time zone value '?й???????' is unrecognized or re