当前位置:网站首页>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 brush questions: binary tree 11 (balanced binary tree)
- .Net分布式事务及落地解决方案
- Informatics Orsay all in one 1339: [example 3-4] find the post order traversal | Valley p1827 [usaco3.4] American Heritage
- y57.第三章 Kubernetes从入门到精通 -- 业务镜像版本升级及回滚(三十)
- Go language learning tutorial (16)
- 计算lnx的一种方式
- ffplay文档[通俗易懂]
- 资源道具化
- 1、强化学习基础知识点
- ROS2专题【01】:win10上安装ROS2
猜你喜欢

Convolution free backbone network: Pyramid transformer to improve the accuracy of target detection / segmentation and other tasks (with source code)

leetcode刷题:二叉树14(左叶子之和)

1、强化学习基础知识点

ROS2专题【01】:win10上安装ROS2

解决Thinkphp框架应用目录下数据库配置信息修改后依然按默认方式连接

基础篇——配置文件解析
![[quick start of Digital IC Verification] 3. Introduction to the whole process of Digital IC Design](/img/92/7af0db21b3d7892bdc5dce50ca332e.png)
[quick start of Digital IC Verification] 3. Introduction to the whole process of Digital IC Design

Rainbow 5.7.1 supports docking with multiple public clouds and clusters for abnormal alarms

. Net distributed transaction and landing solution

Leetcode(695)——岛屿的最大面积
随机推荐
Fundamentals - configuration file analysis
[quick start to digital IC Verification] 8. Typical circuits in digital ICs and their corresponding Verilog description methods
Go language learning tutorial (16)
sort和投影
Go language | 03 array, pointer, slice usage
Ros2 topic [01]: installing ros2 on win10
插值查找的简单理解
Informatics Orsay all in one 1339: [example 3-4] find the post order traversal | Valley p1827 [usaco3.4] American Heritage
如何形成规范的接口文档
Practical demonstration: how can the production research team efficiently build the requirements workflow?
Solve the problem that the database configuration information under the ThinkPHP framework application directory is still connected by default after modification
Convolution free backbone network: Pyramid transformer to improve the accuracy of target detection / segmentation and other tasks (with source code)
Relationship between mongodb documents
Is it safe for CICC fortune to open an account online?
kubernetes资源对象介绍及常用命令(五)-(ConfigMap&Secret)
Leetcode brush question: binary tree 13 (the same tree)
sun. misc. Base64encoder error reporting solution [easy to understand]
Process file and directory names
.Net分布式事務及落地解决方案
解决Thinkphp框架应用目录下数据库配置信息修改后依然按默认方式连接