当前位置:网站首页>mysql 查看是否锁表
mysql 查看是否锁表
2022-07-25 15:43:00 【Leon_Jinhai_Sun】
mysql查看被锁住的表
查询是否锁表
show OPEN TABLES where In_use > 0;
查看所有进程
MySQL:
show processlist;
mariabd:
show full processlist;
查询到相对应的进程===然后 kill id
杀掉指定mysql连接的进程号
kill $pid
查看正在锁的事务
SELECT * FROM INFORMATION_SCHEMA.INNODB_LOCKS;
查看等待锁的事务
SELECT * FROM INFORMATION_SCHEMA.INNODB_LOCK_WAITS;
查看innodb引擎的运行时信息
show engine innodb status\G;
查看造成死锁的sql语句,分析索引情况,然后优化sql语句;
查看服务器状态
show status like '%lock%';
查看超时时间:
show variables like '%timeout%';边栏推荐
- 物理防火墙是什么?有什么作用?
- 十字链表的存储结构
- How to disable hosting when Flink SQL in flink-1.13.6 runs in yarn session mode
- LeetCode - 622 设计循环队列 (设计)
- Pytoch learning notes -- Summary of common functions of pytoch 1
- Leetcode - 380 o (1) time to insert, delete and get random elements (design hash table + array)
- 【IJCAI 2022】参数高效的大模型稀疏训练方法,大幅减少稀疏训练所需资源
- Cf750f1 thinking DP
- 2019 Zhejiang race c-wrong arrangement, greedy
- Activity review | July 6 Anyuan AI X machine heart series lecture No. 2 | MIT professor Max tegmark shares "symbiotic evolution of human and AI"
猜你喜欢

MySQL—用户和权限管控

LeetCode - 362 敲击计数器(设计)

Recommended collection, which is probably the most comprehensive coding method summary of category type features

今天睡眠质量记录84分

P4552 differential

Leetcode - 379 telephone directory management system (Design)

LeetCode - 303 区域和检索 - 数组不可变 (设计 前缀和数组)

Gary marcus: learning a language is more difficult than you think

How matlab produces random complex sequences

电阻电路的等效变化(Ⅱ)
随机推荐
Activity review | July 6 Anyuan AI X machine heart series lecture No. 2 | MIT professor Max tegmark shares "symbiotic evolution of human and AI"
Circulaindicator component, which makes the indicator style more diversified
JVM—类加载器和双亲委派模型
JVM - classloader and parental delegation model
SVD singular value decomposition derivation and application and signal recovery
Pytoch learning notes -- Summary of common functions 3
Pytoch learning notes -- seresnet50 construction
Distributed | practice: smoothly migrate business from MYCAT to dble
Leetcode - 362 knock counter (Design)
兆骑科创高质量海归人才双创服务平台,线上直播路演
LeetCode - 677 键值映射(设计)*
The second revolution of reporting tools
LeetCode - 622 设计循环队列 (设计)
MATLAB optimization tool manopt installation
Google Blog: training general agents with multi game decision transformer
Alibaba's internal "100 billion level concurrent system architecture design notes" are all inclusive, too comprehensive
LeetCode - 232 用栈实现队列 (设计 双栈实现队列)
Leetcode - 303 area and retrieval - array immutable (design prefix and array)
LeetCode - 303 区域和检索 - 数组不可变 (设计 前缀和数组)
物理防火墙是什么?有什么作用?