首页 > 代码库 > Eclipse连接MySQL出现Server time zone is unrecognized错误
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错误
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。