MySQL连接异常: The server time zone value ‘?й???????‘ is unrecognized or represents more than one time.
Posted 念奕玥
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了MySQL连接异常: The server time zone value ‘?й???????‘ is unrecognized or represents more than one time.相关的知识,希望对你有一定的参考价值。
连接mysql8.0.16版本时报错:
Caused by: 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.
以上错误日志提示 时区配置错误
解决:手动在url后加上关于时区的配置
正确的url为:
jdbc.url=jdbc:mysql://localhost:3306/crm?useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&characterEncoding=UTF-8
serverTimezone=GMT%2B8
指定为中国时区
以上是关于MySQL连接异常: The server time zone value ‘?й???????‘ is unrecognized or represents more than one time.的主要内容,如果未能解决你的问题,请参考以下文章
mysql连接异常:The server time zone value '?й???????' is unrecognized or represents more than one
异常:“The last packet sent successfully to the server was 0 milliseconds ago. ”的办法(一条龙全套解决办法)
ssm框架下 数据库连接异常 java.sql.SQLException: The server time zone value '???ú±&
连接mysql报错:Communications link failure The last packet successfully received from the server was 3,5
mysql异常之: The server time zone value ‘?D1ú±ê×?ê±??‘ is unrecognized or represents more than one time