线上操作MySQL 物理删除数据报请求超时

系统有物理删除功能,基本每次点击删除都会报错,偶尔会通过

delete from 表名 where id = ?

org.springframework.dao.QueryTimeoutException:

Error updating database. Cause: com.mysql.cj.jdbc.exceptions.MySQLTimeoutException: Statement cancelled due to timeout or client request
The error may involve com.owinfo.custom.service.dao.InvtHeadDAO.deleteById-Inline
The error occurred while setting parameters

 

不知道你这个问题是否已经解决, 如果还没有解决的话:

如果你已经解决了该问题, 非常希望你能够分享一下解决方案, 以帮助更多的人 ^-^