Eclipse连接MySQL出现Server time zone is unrecognized错误
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Eclipse连接MySQL出现Server time zone is unrecognized错误相关的知识,希望对你有一定的参考价值。
错误代码:
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后加上 serverTimezone=GMT 即可。如:
jdbc:mysql://localhost:3306/test?characterEncoding=utf8&useSSL=true&serverTimezone=GMT
参考文章:
http://blog.csdn.net/oppo5630/article/details/52162783
http://blog.csdn.net/chyo098/article/details/51811886
https://dev.mysql.com/downloads/connector/j/
以上是关于Eclipse连接MySQL出现Server time zone is unrecognized错误的主要内容,如果未能解决你的问题,请参考以下文章
eclipse用jdbc连接SQL server时出现了问题……这是啥情况啊!请大神指教!
eclipse连接mysql数据库提示The server time zone value 'Öйú±ê×¼&
eclipse:项目启动MySQL报错:The last packet successfully received from the server was x milliseconds ago