当前位置:网站首页>MySQL check whether the table is locked
MySQL check whether the table is locked
2022-07-26 06:51:00 【Leon_ Jinhai_ Sun】
mysql Look at the locked table
Check whether the table is locked
show OPEN TABLES where In_use > 0;
View all processes
MySQL:
show processlist;
mariabd:
show full processlist;
Query the corresponding process === then kill id
Kill the designated mysql The process number of the connection
kill $pid
View the transaction being locked
SELECT * FROM INFORMATION_SCHEMA.INNODB_LOCKS;
View transactions waiting for locks
SELECT * FROM INFORMATION_SCHEMA.INNODB_LOCK_WAITS;
see innodb Run time information for the engine
show engine innodb status\G;
See what caused the deadlock sql sentence , Analyze the index situation , And then optimize sql sentence ;
View server status
show status like '%lock%';
Check the timeout :
show variables like '%timeout%';边栏推荐
- How to open an account online for Guohai Securities? Is it safe to open an account
- How does the national standard gb28181 protocol easygbs platform realize device video recording and set streaming IP?
- How strong is the working ability of a project manager with a monthly salary of 50000?
- [Star Project] small hat aircraft War (IV)
- 『牛客|每日一题』 栈的压入、弹出序列
- Address resolution ARP Protocol
- Display Chinese characters in uitoolkit
- Why the server is stuck
- Huffman coding principle
- Esxi 7.0 installation supports mellanox technologies mt26448 [connectx en 10gige, PCIe 2.0 5gt/s] driver, and supports the cheapest 10GB dual fiber network card
猜你喜欢

【Star项目】小帽飞机大战(三)

软考可以查成绩了,2022年上半年软考成绩查询入口已开通

7. Reverse Integer整数反转

『HarmonyOS』探索HarmonyOS应用

CONDA virtual environment envs directory is empty

Click "Niuke | daily question" to eliminate it

UIToolkit中显示汉字

微信小程序 - 从入门到入土

How to solve the crash when the easygbs platform edits the device management group?

排序问题:冒泡排序,选择排序,插入排序
随机推荐
SQL optimization scheme
How strong is the working ability of a project manager with a monthly salary of 50000?
LeetCode刷题1:题目分类
字符串和内存函数
Force buckle - 3. Longest substring without repeated characters
[image denoising] image denoising based on bicube interpolation and sparse representation matlab source code
Which "digital currencies" can survive this winter? 2020-03-30
深度学习——CV、CNN、RNN
你了解MySQL都包含哪些“零件“吗?
『牛客|每日一题』模板栈
『牛客|每日一题』点击消除
How does the national standard gb28181 protocol easygbs platform realize device video recording and set streaming IP?
Force deduction 5: Longest palindrome substring
『HarmonyOS』探索HarmonyOS应用
Fastdfs supports dual IP and IPv6
buuReserve(4)
Regular expressions and calling related functions in C language
Resume considerations
III Actual combat - current time representation and world standard time format
Tiktok web s_ v_ web_ Analysis and implementation of ID parameter generation