当前位置:网站首页>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%';边栏推荐
- Leetcode - 677 key value mapping (Design)*
- LeetCode - 622 设计循环队列 (设计)
- [server data recovery] data recovery cases of raid information loss caused by unexpected power failure of HP EVA server storage
- LeetCode - 707 设计链表 (设计)
- MySQL—用户和权限管控
- Dpdk packet receiving and sending problem case: non packet receiving problem location triggered by mismatched packet sending and receiving function
- Gary marcus: learning a language is more difficult than you think
- MATLAB optimization tool manopt installation
- Cf750f1 thinking DP
- JVM—类加载器和双亲委派模型
猜你喜欢

推荐收藏,这或许是最全的类别型特征的编码方法总结

CVPR 2022 | in depth study of batch normalized estimation offset in network

Ice 100g network card fragment message hash problem

如何构建面向海量数据、高实时要求的企业级OLAP数据引擎?

CircleIndicator组件,使指示器风格更加多样化

今天睡眠质量记录84分

How matlab saves all the data after running

P4552 differential

面试突击:为什么 TCP 需要 3 次握手?

MATLAB optimization tool manopt installation
随机推荐
LeetCode - 359 日志速率限制器 (设计)
Reasons for data format conversion when matlab reads the displayed image
Alibaba's internal "100 billion level concurrent system architecture design notes" are all inclusive, too comprehensive
LeetCode - 379 电话目录管理系统(设计)
LeetCode - 677 键值映射(设计)*
2019 Zhejiang race c-wrong arrangement, greedy
30行自己写并发工具类(Semaphore, CyclicBarrier, CountDownLatch)
Gary marcus: learning a language is more difficult than you think
Leetcode - 380 o (1) time to insert, delete and get random elements (design hash table + array)
How matlab saves all the data after running
微信小程序
Data system partition design - partition and secondary index
"Digital security" alert NFT's seven Scams
电阻电路的等效变化(Ⅱ)
Zhaoqi Kechuang high-quality overseas returnee talent entrepreneurship and innovation service platform, online live broadcast Roadshow
Recommended collection, which is probably the most comprehensive coding method summary of category type features
Is there only one lib under JDBC in Seata?
Pytoch framework exercise (based on kaggle Titanic competition)
Experimental reproduction of image classification (reasoning only) based on caffe resnet-50 network
Leetcode - 677 key value mapping (Design)*