当前位置:网站首页>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 .
边栏推荐
- Leetcode (695) - the largest area of an island
- [C language] merge sort
- 港股将迎“最牛十元店“,名创优品能借IPO突围?
- 如何形成规范的接口文档
- Y57. Chapter III kubernetes from entry to proficiency -- business image version upgrade and rollback (30)
- CTF逆向基础
- DP: tree DP
- Hong Kong stocks will welcome the "best ten yuan store". Can famous creative products break through through the IPO?
- How to choose a good external disk platform, safe and formal?
- 19 Mongoose模块化
猜你喜欢
![Scala basics [HelloWorld code parsing, variables and identifiers]](/img/75/1d89581b9b8299ffb55d95514e6df4.png)
Scala basics [HelloWorld code parsing, variables and identifiers]

leetcode刷题:二叉树12(二叉树的所有路径)

Unity编辑器扩展 UI控件篇

Mysql频繁操作出现锁表问题

【数字IC验证快速入门】2、通过一个SoC项目实例,了解SoC的架构,初探数字系统设计流程

物联网智能家居基本方法实现之经典
![信息学奥赛一本通 1339:【例3-4】求后序遍历 | 洛谷 P1827 [USACO3.4] 美国血统 American Heritage](/img/f0/0f985425bd61d9852af0b5fd7307ee.png)
信息学奥赛一本通 1339:【例3-4】求后序遍历 | 洛谷 P1827 [USACO3.4] 美国血统 American Heritage

Introduction to dead letter queue (two consumers, one producer)

【数字IC验证快速入门】9、Verilog RTL设计必会的有限状态机(FSM)

Leetcode skimming: binary tree 12 (all paths of binary tree)
随机推荐
计算lnx的一种方式
Schema和Model
CCPC 2021威海 - G. Shinyruo and KFC(组合数,小技巧)
Leetcode: binary tree 15 (find the value in the lower left corner of the tree)
Notes on key vocabulary in the English original of the biography of jobs (12) [chapter ten & eleven]
[C language] merge sort
Document method
How to retrieve the root password of MySQL if you forget it
leetcode刷题:二叉树14(左叶子之和)
ICTCLAS用的字Lucene4.9捆绑
CVPR 2022 | 常见3D损坏和数据增强
JS implementation prohibits web page zooming (ctrl+ mouse, +, - zooming effective pro test)
Leetcode skimming: binary tree 10 (number of nodes of a complete binary tree)
Schema and model
解决Thinkphp框架应用目录下数据库配置信息修改后依然按默认方式连接
mongodb基操的练习
618 "low key" curtain call, how can baiqiushangmei join hands with the brand to cross the "uncertain era"?
[quick start of Digital IC Verification] 7. Basic knowledge of digital circuits necessary for verification positions (including common interview questions)
港股将迎“最牛十元店“,名创优品能借IPO突围?
Elk distributed log analysis system deployment (Huawei cloud)