The last packet successfully received from the server was 3,607 milliseconds ago. The last packet sent successfully to the server was 3,007 milliseconds ago

spring boot项目报以上错误解决方案:
在application.properties或application.yml配置文件中修改你的MySQL数据库连接url的配置:

  #数据库连接datasource:driver-class-name: com.mysql.jdbc.Driverurl: jdbc:mysql://localhost:3306/xxx?allowMutiQueries=true&characterEncoding=utf8&useSSL=false&connectTimeout=1000&socketTimeout=3000username: password:

如上:我的连接时间大于了我设置的配置时间(connectTimeout=1000&socketTimeout=3000),所以就会报错。
可以修改自己的配置时间或者直接不需要它,根据自身需求来。

The last packet successfully received from the server was 3,607 milliseconds ago. The last packet s相关推荐

  1. The last packet successfully received from the server was 1,072 milliseconds ago. The last packet s

    问题: 今天在运行一个打包好的 jar 项目的时候,报了标题上的这个错误. 具体错误如下: 2022-05-06 16:42:23.534 [main] INFO com.zer.MyApplicat ...

  2. The last packet successfully received from the server was 39,900 milliseconds ago问题解决

    The last packet successfully received from the server was 39,900 milliseconds ago问题解决 参考文章: (1)The l ...

  3. The last packet successfully received from the server was 1,547,682,071 milliseconds ago. The last

    MySQL 经常出现这样的错误: org.springframework.dao.DataAccessResourceFailureException:   PreparedStatementCall ...

  4. eclipse:项目启动MySQL报错:The last packet successfully received from the server was x milliseconds ago

    原因是数据库设置了连接回收时长.这个时候系统缓冲池不知道会继续使用被回收的连接导致报错 解决方法:Navicat可视化工具直接执行: wait_timeout=86400或者更大将回收空闲连接的时间变 ...

  5. 彻底解决The last packet successfully received from the server was * milliseconds ago问题

    1.修改mysql 的 wait_timeout参数(和interactive_timeout一起) 不推荐 2.如果用hibernate.必须手动配置连接池,最好是用c3p0连接池.如果不配,会使用 ...

  6. mysql重连,连接丢失:The last packet successfully received from the server--转载

    原文地址:http://nkcoder.github.io/blog/20140712/mysql-reconnect-packet-lost/ 1.1 错误信息: Caused by: com.my ...

  7. mysql报错last packet_mysql The last packet successfully received

    mysql服务器最近老是报错,内容如下: The last packet successfully received from the server was 65,502,275 millisecon ...

  8. Communications link failure,The last packet successfully received from the serve

    最近做测试,发现Mysql 过一段时间会无法连接,导致数据库数据不一至,极其郁闷. 使用Connector/J连接MySQL数据库,程序运行较长时间后就会报以下错误: Communications l ...

  9. 日志输出The last packet successfully received问题以及c3p0解决方案,max_statements

    今天部署项目上线 然后sql查询失败,看日志发现 The last packet successfully received from the server was 607,486 milliseco ...

最新文章

  1. java易语言_java程序员,0基础学习开发易语言。
  2. 化工设备与反应器 第二章 直杆的拉伸与压缩
  3. Android Lifecycle源码解析(一)
  4. 也说电影《魔比斯环》
  5. HBase学习笔记——概念及原理
  6. qt中解析json字符串的时候出现错误missingNameSeperator
  7. 【Python】Python3.7.3 - 虚拟环境:pyvenv过时;使用python -m venv命令
  8. 百度下拉词框优化推广该如何利用及优化推广?
  9. Maven构建生命周期
  10. OpenCV——无法打开“opencv2/opencv.hpp”文件
  11. android手机黑科技软件,安卓党福利!10款黑科技APP,让你的手机更好用
  12. mac时钟屏保_【win/mac】抖音网红八卦时钟屏保动态壁纸,快来体验
  13. Google发布Chrome Web Store应用商店
  14. 面试必刷算法TOP101之买卖股票问题 TOP16
  15. form表单内子元素组件按钮button事件冲突 - Vue
  16. 【工具篇】maven指令大全
  17. 团队作业之一:团队介绍及选题背景与意义
  18. [热门]浅谈360主动防御(360提示)、瑞星主动及360实时查杀的免杀技巧
  19. 【论文翻译】Deep Residual Learning for Image Recognition
  20. 电动汽车蒙特卡洛模拟(附Matlab代码)

热门文章

  1. db2 10.1 数据库文件介绍
  2. 【程序人生】航向角和前轮转角
  3. git的一些基础与常用命令
  4. 最快鉴别网工能力的方法,就三个字
  5. 这家盒马店有位“外交官”,迪拜大亨、印尼高官都爱来
  6. windows7 home basic 安装DB2 Express-C
  7. android 电池温度传感器,android传感器
  8. win10公司内网连接失败解决方案大全100%解决(非翻墙)
  9. GateOne CVE-2020-35736 任意文件读取漏洞复现
  10. 多商户水站配送店员水票核销送水桶装水小程序开发