栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Java

The last packet successfully received from the server was 27,832 milliseconds ago

Java 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

The last packet successfully received from the server was 27,832 milliseconds ago

问题
Caused by: org.springframework.dao.RecoverableDataAccessException: ### Error updating database. Cause: com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure The last packet successfully received from the server was 27,832 milliseconds ago. The last packet sent successfully to the server was 27,885 milliseconds ago. ### The error may exist in class path resource [mapper/Batcer.xml] ### The error may involve defaultParameterMap ### The error occurred while setting parameters ### SQL: insert into aaa ( trd, tradme, proviode, sourstem, exteo, ceme, ceype, cerum, phoame, phope, photate, phl, verore, uploat ) VALUES ( ?, ?, ?, ?, ?, ?,什么什么的

就是sql执行时间太长或者等待时间太长

改一下数据库的参数

show global variables like '%timeout%';

# 这里放大了一倍,可以根据自己的实际情况而定
set global net_read_timeout=60; 
set global net_write_timeout=120; # 等待将一个block发送给客户端的超时时间。

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/590982.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号