当前位置:网站首页>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 .
边栏推荐
- - Oui. Net Distributed Transaction and Landing Solution
- Informatics Olympiad 1340: [example 3-5] extended binary tree
- How to select the Block Editor? Impression notes verse, notation, flowus
- Codeforces Round #804 (Div. 2) - A, B, C
- [Yugong series] go teaching course in July 2022 004 go code Notes
- PyTorch 1.12发布,正式支持苹果M1芯片GPU加速,修复众多Bug
- Unity editor extended UI control
- 银河证券在网上开户安全吗?
- Leetcode brush questions: binary tree 11 (balanced binary tree)
- 【数字IC验证快速入门】1、浅谈数字IC验证,了解专栏内容,明确学习目标
猜你喜欢

全国爱眼教育大会,2022第四届北京国际青少年眼健康产业展会

A solution to PHP's inability to convert strings into JSON
![[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

Practical demonstration: how can the production research team efficiently build the requirements workflow?

How to select the Block Editor? Impression notes verse, notation, flowus
![[quick start of Digital IC Verification] 9. Finite state machine (FSM) necessary for Verilog RTL design](/img/32/a156293f145417eeae8d93c539ca55.png)
[quick start of Digital IC Verification] 9. Finite state machine (FSM) necessary for Verilog RTL design

如何形成规范的接口文档

Oracle tablespace management

Leetcode (695) - the largest area of an island

2022北京眼睛健康用品展,护眼产品展,中国眼博会11月举办
随机推荐
Sort and projection
Scala基础【HelloWorld代码解析,变量和标识符】
BZOJ 3747 POI2015 Kinoman 段树
[Yugong series] go teaching course in July 2022 004 go code Notes
When JS method passes long type ID value, precision loss will occur
CTF逆向基础
Document method
19 Mongoose模块化
信息学奥赛一本通 1338:【例3-3】医院设置 | 洛谷 P1364 医院设置
Go language | 01 wsl+vscode environment construction pit avoidance Guide
How to select the Block Editor? Impression notes verse, notation, flowus
Some problems encountered in cocos2d-x project summary
July 4, 2022 - July 10, 2022 (UE4 video tutorial MySQL)
常用的视图容器类组件
Convolution free backbone network: Pyramid transformer to improve the accuracy of target detection / segmentation and other tasks (with source code)
MySql的root密码忘记该怎么找回
CTF reverse Foundation
3.3、项目评估
Introduction to dead letter queue (two consumers, one producer)
C language OJ gets PE, OJ of ACM introduction~