当前位置:网站首页>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 transaction
This 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 .
边栏推荐
- BZOJ 3747 POI2015 Kinoman 段树
- 强化学习-学习笔记4 | Actor-Critic
- Solve the problem that the database configuration information under the ThinkPHP framework application directory is still connected by default after modification
- leetcode刷题:二叉树14(左叶子之和)
- Leetcode skimming: binary tree 10 (number of nodes of a complete binary tree)
- ROS2专题【01】:win10上安装ROS2
- . Net distributed transaction and landing solution
- [quick start of Digital IC Verification] 7. Basic knowledge of digital circuits necessary for verification positions (including common interview questions)
- How to choose a good external disk platform, safe and formal?
- 【愚公系列】2022年7月 Go教学课程 004-Go代码注释
猜你喜欢
[quick start of Digital IC Verification] 3. Introduction to the whole process of Digital IC Design
Unity editor extended UI control
【数字IC验证快速入门】1、浅谈数字IC验证,了解专栏内容,明确学习目标
欢迎来战,赢取丰厚奖金:Code Golf 代码高尔夫挑战赛正式启动
- Oui. Net Distributed Transaction and Landing Solution
Practical demonstration: how can the production research team efficiently build the requirements workflow?
【数字IC验证快速入门】3、数字IC设计全流程介绍
leetcode刷题:二叉树14(左叶子之和)
Leetcode brush questions: binary tree 11 (balanced binary tree)
计算lnx的一种方式
随机推荐
Go language learning tutorial (16)
July 4, 2022 - July 10, 2022 (UE4 video tutorial MySQL)
信息学奥赛一本通 1338:【例3-3】医院设置 | 洛谷 P1364 医院设置
JS implementation prohibits web page zooming (ctrl+ mouse, +, - zooming effective pro test)
js方法传Long类型id值时会出现精确损失
Elk distributed log analysis system deployment (Huawei cloud)
2020 CCPC 威海 - A. Golden Spirit(思维),D. ABC Conjecture(大数分解 / 思维)
【愚公系列】2022年7月 Go教学课程 004-Go代码注释
Hong Kong stocks will welcome the "best ten yuan store". Can famous creative products break through through the IPO?
Guidelines for application of Shenzhen green and low carbon industry support plan in 2023
document方法
mongodb/文档操作
Wechat applet regular expression extraction link
信息学奥赛一本通 1337:【例3-2】单词查找树 | 洛谷 P5755 [NOI2000] 单词查找树
.Net分布式事务及落地解决方案
MySql的root密码忘记该怎么找回
[Yugong series] go teaching course in July 2022 004 go code Notes
Leetcode: binary tree 15 (find the value in the lower left corner of the tree)
小程序事件绑定
走入并行的世界