当前位置:网站首页>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 .
边栏推荐
- Informatics Olympiad 1337: [example 3-2] word search tree | Luogu p5755 [noi2000] word search tree
- 1:引文;
- Oracle-表空间管理
- c语言oj得pe,ACM入门之OJ~
- 19 Mongoose模块化
- Dry goods navigation in this quarter | Q2 2022
- Enter the parallel world
- [C language] three implementations of quick sorting and optimization details
- Go language | 01 wsl+vscode environment construction pit avoidance Guide
- Schema and model
猜你喜欢
信息学奥赛一本通 1339:【例3-4】求后序遍历 | 洛谷 P1827 [USACO3.4] 美国血统 American Heritage
- Oui. Net Distributed Transaction and Landing Solution
走入并行的世界
A way to calculate LNX
leetcode刷题:二叉树10(完全二叉树的节点个数)
Leetcode: binary tree 15 (find the value in the lower left corner of the tree)
解决php无法将string转换为json的办法
14、Transformer--VIT TNT BETR
JS implementation prohibits web page zooming (ctrl+ mouse, +, - zooming effective pro test)
【愚公系列】2022年7月 Go教学课程 004-Go代码注释
随机推荐
Document method
ffplay文档[通俗易懂]
Summer Challenge harmonyos - realize message notification function
CVPR 2022 | 常见3D损坏和数据增强
Cocos2d-x项目总结中的一些遇到的问题
【数字IC验证快速入门】1、浅谈数字IC验证,了解专栏内容,明确学习目标
A way to calculate LNX
19 mongoose modularization
Oracle tablespace management
How to choose a good external disk platform, safe and formal?
Go language learning tutorial (XV)
nprogress插件 进度条
基金网上开户安全吗?去哪里开,可以拿到低佣金?
About the priority of Bram IP reset
小程序事件绑定
js实现禁止网页缩放(Ctrl+鼠标、+、-缩放有效亲测)
How to select the Block Editor? Impression notes verse, notation, flowus
[quick start of Digital IC Verification] 7. Basic knowledge of digital circuits necessary for verification positions (including common interview questions)
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,
港股将迎“最牛十元店“,名创优品能借IPO突围?