mysql-connector-java 6.02 错误
2016-06-09 00:00
387 查看
摘要: 6.02 驱动 com.mysql.cj.jdbc.Driver ,报出java.sql.SQLException: The server time zone value 'CST' 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 ...
最进使用mysql-connector-java 6.02 ,发现IDEA提示,com.mysql.jdbc.Driver 已过期。于是换成 driverClass=com.mysql.cj.jdbc.Driver
尝试了一下, 跑Junit没事。但是放到tomcat上报出
网上找timezone 的解决办法,无效。后来发现,换成5.1.39版本的驱动后,把Driver名换成
driverClass=com.mysql.jdbc.Driver 后问题解决,原因到底是什么没有找到。继续寻找。
最进使用mysql-connector-java 6.02 ,发现IDEA提示,com.mysql.jdbc.Driver 已过期。于是换成 driverClass=com.mysql.cj.jdbc.Driver
尝试了一下, 跑Junit没事。但是放到tomcat上报出
ava.sql.SQLException: The server time zone value 'CST' 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. |
driverClass=com.mysql.jdbc.Driver 后问题解决,原因到底是什么没有找到。继续寻找。
相关文章推荐
- Seafile Server本地权限提升漏洞(CVE-2014-5443)
- 从USB安装Ubuntu Server 10.04.3 图文详解
- Ubuntu 下修改 Could not reliably determine the serve
- 使用zabbix监控Nginx活动状态--Part1
- 高效访问Internet-启用ISA Server的缓存
- windows server域用户提升到本地更高权限组中的方法
- 完美解决SQL Server 安装问题:以前的某个程序安装已在安装计算机上创建挂起的文件操作
- IIS 错误 Server Application Error 详细解决方法
- 在WINXP系统上安装SQL Server企业版的方法
- SQL Server 存储过程的分页
- SQL Server复制需要有实际的服务器名称才能连接到服务器
- SQL Server 2000向SQL Server 2008 R2推送数据图文教程
- SQL server 表操作介绍
- SQL Server 2000 注入防护大全(二)
- SQL Server 2000 注入防护大全(一)
- 怎样把Windows server 2003转换成工作站系统
- Windows Server 2007四月CTP发布 下载
- IIS运行错误 Server Application Error 错误代码 Error: 8004的解决方法
- Microsoft SQL Server 2008安装图解教程(Windows 7)
- 企业运维—玩转 windows server 2016 DNS服务