当前位置:网站首页>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 segment tree
- Leetcode brush question: binary tree 13 (the same tree)
- Minimum commission for stock trading account opening, where to open an account with low commission? Is it safe to open an account on your mobile phone
- USACO3.4 “破锣摇滚”乐队 Raucous Rockers - DP
- IC科普文:ECO的那些事儿
- 资源道具化
- Model method
- Informatics Orsay all in one 1339: [example 3-4] find the post order traversal | Valley p1827 [usaco3.4] American Heritage
- How to choose a good external disk platform, safe and formal?
- mongodb基操的练习
猜你喜欢
Scala basics [HelloWorld code parsing, variables and identifiers]
Unity编辑器扩展 UI控件篇
Convolution free backbone network: Pyramid transformer to improve the accuracy of target detection / segmentation and other tasks (with source code)
Wechat applet regular expression extraction link
leetcode刷题:二叉树14(左叶子之和)
618 "low key" curtain call, how can baiqiushangmei join hands with the brand to cross the "uncertain era"?
Informatics Orsay all in one 1339: [example 3-4] find the post order traversal | Valley p1827 [usaco3.4] American Heritage
Go language | 03 array, pointer, slice usage
[quick start to digital IC Verification] 8. Typical circuits in digital ICs and their corresponding Verilog description methods
Go language | 01 wsl+vscode environment construction pit avoidance Guide
随机推荐
小程序页面导航
B站UP搭建世界首个纯红石神经网络、基于深度学习动作识别的色情检测、陈天奇《机器学编译MLC》课程进展、AI前沿论文 | ShowMeAI资讯日报 #07.05
c语言oj得pe,ACM入门之OJ~
js方法传Long类型id值时会出现精确损失
14、Transformer--VIT TNT BETR
DP: tree DP
Relationship between mongodb documents
How to retrieve the root password of MySQL if you forget it
19 mongoose modularization
Mongodb basic exercises
Dry goods navigation in this quarter | Q2 2022
Leetcode (695) - the largest area of an island
Mysql频繁操作出现锁表问题
Station B up builds the world's first pure red stone neural network, pornographic detection based on deep learning action recognition, Chen Tianqi's course progress of machine science compilation MLC,
Leetcode skimming: binary tree 12 (all paths of binary tree)
Zero cloud new UI design
Some problems encountered in cocos2d-x project summary
ByteDance dev better technology salon was successfully held, and we joined hands with Huatai to share our experience in improving the efficiency of web research and development
Hong Kong stocks will welcome the "best ten yuan store". Can famous creative products break through through the IPO?
About the priority of Bram IP reset