当前位置:网站首页>Lock wait timeout exceeded solution
Lock wait timeout exceeded solution
2022-07-30 15:13:00 【web18484626332】
[Err] 1205 - Lock wait timeout exceeded; try restarting transaction
Basic reason: The post-committed transaction waits for the previously processed transaction to release the lock, but when waiting exceeds the lock waiting time of mysql, this exception will be raised.
1. Find the locked statement by going to information_schema
information_schema
This data table saves the information of all databases on the MySQL server.Such as database name, database table, table column data type and access rights.To put it simply, on this MySQL server, which databases are there, which tables are in each database, what are the field types of each table, what permissions are required for each database to access, and so on, the information is stored in the information_schema table.
mysql version before 8: information_schema
innodb_trx
all currently running transactionsinnodb_locks
currently present locksinnodb_lock_waits
correspondence of lock waiting
select * from information_schema.innodb_trx;
select * from information_schema.innodb_locks;
select * from information_schema.innodb_locks_waits;
mysql version after 8.0: performance_schema
innodb_trx
all currently running transactionsinnodb_locks
currently present locksinnodb_lock_waits
correspondence of lock waiting
select * from information_schema.innodb_trx;
select * from performance_schema.data_locks;
select * from performance_schema.data_lock_waits;
2. There is a lock in the query database
select * from information_schema.innodb_trx;
The record status is "RUNNING
", that is, the transaction is being executed, and there is no lock
3. Show running threads
show full processlist;
Then find out the system id of the query statement: kill the locked thread id
kill 5
边栏推荐
- Six-faced ant financial clothing, resisting the bombardment of the interviewer, came to interview for review
- Huawei issues another summoning order for "Genius Boys"!He, who had given up an annual salary of 3.6 million, also made his debut
- Ts是什么?
- Before quitting, make yourself a roll king
- Recommended open source tools: MegPeak, a high-performance computing tool
- Baijiahao cancels the function of posting documents on the interface: the weight of the plug-in chain is blocked
- Remember an experience of interviewing an outsourcing company, should you go?
- 超T动力 盈运天下——中国重汽黄河/豪沃WP14T产品首发荣耀上市!
- 泡沫褪去,DeFi还剩下什么
- MaxWell抓取数据
猜你喜欢
泡沫褪去,DeFi还剩下什么
吃透Chisel语言.29.Chisel进阶之通信状态机(一)——通信状态机:以闪光灯为例
Understand the Chisel language. 29. Chisel advanced communication state machine (1) - communication state machine: take the flash as an example
canal抓取数据
5. DOM
Flink real-time data warehouse completed
华为再发「天才少年」召集令!曾放弃360万年薪的他也来首秀
【回归预测-CNN预测】基于卷积神经网络CNN实现数据回归预测附matlab代码
71-page comprehensive overall solution for global tourism 2021 ppt
那些破釜沉舟入局Web3.0的互联网精英都怎么样了?
随机推荐
SSE for Web Message Push
Redis 缓存穿透、击穿、雪崩以及一致性问题
The use of ccs software (app software that makes money reliably)
Flink本地UI运行
71页全域旅游综合整体解决方案2021 ppt
BI-SQL丨WHILE
Cookie simulation login "recommended collection"
ddl and dml in sql (the difference between sql and access)
Web消息推送之SSE
MongoDB启动报错 Process: 29784 ExecStart=/usr/bin/mongod $OPTIONS (code=exited, status=14)
Flask Framework - Sijax
00 testers of seasoning after nearly a year, whether to change careers or to learn the software testing students summarized the following heart advice
【Vue.js 3.0源码】KeepAlive 组件:如何让组件在内存中缓存和调度?
The use and principle of distributed current limiting reduction RRateLimiter
学习 MySQL 需要知道的 28 个小技巧
Ts是什么?
Use of SLF4J
有关收集箱的改进建议
Desktop Software Development Framework Awards
Android jump to google app market