您的位置:首页 > 数据库 > MySQL

使用MySQL Connector 6+ 版本需要注意的一些问题

2017-06-14 17:33 309 查看
1.驱动类名已经变更为 com.mysql.cj.jdbc.Driver
2. jdbc链接URL需要加入参数serverTimezone=Asia/Shanghai否则可能会出现
com.mysql.cj.core.exceptions.InvalidConnectionAttributeException: 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.的错误
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息