1.报错:The server time zone value '???ú±ê×??±??' is unrecognized or represents

解决方法:在jdbc连接的url后面加上serverTimezone=GMT即可

private String dbUrl = "jdbc:mysql://localhost:3306/user?useSSL=false&serverTimezone=GMT";

2. WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.

解决方法:1.在数据库连接的url中添加useSSL=false;2.url中添加useSSL=true,并且提供服务器的验证证书

jdbc:mysql://localhost:3306/user?useSSL=false

3.报错:java.sql.SQLException: Unknown system variable 'query_cache_size'

驱动器版本过低,无法连接。

解决方法:下载对应的驱动器版本。

mysql-connector-java驱动器各版本下载链接:http://mvnrepository.com/artifact/mysql/mysql-connector-java

最新文章

  1. NHibernate Profiler使用方法
  2. 使用MicroService4Net 快速创建一个简单的微服务
  3. iOS之 HTTP、Socket、TCP的区别(易混
  4. 【poj2455】 Secret Milking Machine
  5. Python3常用内置函数
  6. Java学习笔记(二十)——Java 散列表_算法内容
  7. System.Web.HttpContext.Current.Server.MapPath("~/upload/SH") 未将对象引用设置为实例对象
  8. SessionFactory、HibernateTemplate、HibernateDaoSupport之间的关系说明
  9. Delphi 调用netsh命令修改IP地址
  10. js 实现键盘记录 兼容FireFox和IE
  11. MIME小知识
  12. Base64 加密解密
  13. selenium模块
  14. Light oj 1099 - Not the Best 次短路
  15. hibernate 中文文档
  16. 给现有MVC项目增加Web API支持
  17. Metasploit渗透某高校域服务器
  18. [CF895E]Eyes Closed
  19. 【源码阅读】Java集合之二 - LinkedList源码深度解读
  20. ubuntu没有声音解决办法

热门文章

  1. web.xml整理
  2. 配置Java连接池的两种方式:tomcat方式以及spring方式
  3. WPF学习笔记——没有前途的WPF
  4. https://www.threatminer.org/domain.php?q=blackschickens.xyz ——域名的信誉查询站点 还可以查IP
  5. iOS社会化分享(干货)
  6. 洛谷 P2986 [USACO10MAR]Great Cow Gat…(树形dp+容斥原理)
  7. 基于Myeclipse+Axis2的WebService开发实录
  8. Ionic学习记录(一):ionic及cordova安装、创建第一个应用、项目结构
  9. Spring + Redis ( 简单使用)
  10. checked、disabled在原生、jquery、vue下不同写法