当前位置:网站首页>Frequent MySQL operations cause table locking problems
Frequent MySQL operations cause table locking problems
2022-07-05 20:22:00 【Mountain King in kindergarten】
One 、 Error reporting
org.springframework.dao.CannotAcquireLockException:
### Error updating database. Cause: com.mysql.cj.jdbc.exceptions.MySQLTransactionRollbackException: Lock wait timeout exceeded; try restarting transactionThis error is due to the frequent operation of threads or other operations mysql The database caused the table to be locked .
Two 、 Solution
1、 Execute the following statement in the database .
SELECT * FROM INFORMATION_SCHEMA.INNODB_TRX;There will be

2、 And then find trx_mysql_thread_id Column
Use kill id; Delete the corresponding thread id Can solve .
边栏推荐
- Solve the problem that the database configuration information under the ThinkPHP framework application directory is still connected by default after modification
- 怎么挑选好的外盘平台,安全正规的?
- .Net分布式事务及落地解决方案
- 本季度干货导航 | 2022年Q2
- C langue OJ obtenir PE, ACM démarrer OJ
- Document method
- Codeforces Round #804 (Div. 2) - A, B, C
- 插值查找的简单理解
- How to select the Block Editor? Impression notes verse, notation, flowus
- . Net distributed transaction and landing solution
猜你喜欢

解决php无法将string转换为json的办法

Convolution free backbone network: Pyramid transformer to improve the accuracy of target detection / segmentation and other tasks (with source code)

IC科普文:ECO的那些事儿

1、强化学习基础知识点

小程序全局配置

Unity editor extended UI control

Go language | 01 wsl+vscode environment construction pit avoidance Guide

Mysql频繁操作出现锁表问题

2022北京眼睛健康用品展,护眼产品展,中国眼博会11月举办
![[Yugong series] go teaching course in July 2022 004 go code Notes](/img/18/ffbab0a251dc2b78eb09ce281c2703.png)
[Yugong series] go teaching course in July 2022 004 go code Notes
随机推荐
How to select the Block Editor? Impression notes verse, notation, flowus
nprogress插件 进度条
死信队列入门(两个消费者,一个生产者)
[quick start of Digital IC Verification] 1. Talk about Digital IC Verification, understand the contents of the column, and clarify the learning objectives
[quick start of Digital IC Verification] 7. Basic knowledge of digital circuits necessary for verification positions (including common interview questions)
Introduction to dead letter queue (two consumers, one producer)
.Net分布式事务及落地解决方案
鸿蒙os第四次学习
Go language learning tutorial (XV)
解决Thinkphp框架应用目录下数据库配置信息修改后依然按默认方式连接
Enter the parallel world
Schema and model
【数字IC验证快速入门】2、通过一个SoC项目实例,了解SoC的架构,初探数字系统设计流程
Fundamentals - configuration file analysis
ICTCLAS用的字Lucene4.9捆绑
【数字IC验证快速入门】7、验证岗位中必备的数字电路基础知识(含常见面试题)
mongodb文档间关系
How to retrieve the root password of MySQL if you forget it
sun. misc. Base64encoder error reporting solution [easy to understand]
Scala basics [HelloWorld code parsing, variables and identifiers]