当前位置:网站首页>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%';边栏推荐
- 如何解决跨域问题
- Cf750f1 thinking DP
- 2022-07-25日报:微软提出CodeT:代码生成新SOTA,20个点的性能提升
- 通用测试用例写作规范
- Implementation of recommendation system collaborative filtering in spark
- Pytoch learning notes -- Summary of common functions 2
- 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—常用SQL语句整理总结
- Copy a word style template to another document
- Pytoch learning notes -- seresnet50 construction
猜你喜欢

# JWT 图解

开发者如何为React Native选择合适的数据库

Introduction to redis

Leetcode - 303 area and retrieval - array immutable (design prefix and array)

Gary Marcus: 学习语言比你想象的更难

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

Why is preparestatement better and safer?

Huawei 2023 starts to warm up in advance! Zuo Shen's program code interview guide comes in handy

Okaleido launched the fusion mining mode, which is the only way for Oka to verify the current output

Redis分布式锁,没它真不行
随机推荐
JVM—类加载器和双亲委派模型
【IJCAI 2022】参数高效的大模型稀疏训练方法,大幅减少稀疏训练所需资源
如何解决跨域问题
兆骑科创高质量海归人才双创服务平台,线上直播路演
MySQL tutorial 66 data table query statement
Why is preparestatement better and safer?
JWT diagram
Data system partition design - partition and secondary index
Cf365-e - Mishka and divisors, number theory +dp
MySQL教程67-使用DISTINCT过滤重复数据
MySQL tutorial 65 data in MySQL operation table
Gary Marcus: 学习语言比你想象的更难
Beyond compare 4 realizes class file comparison [latest]
Leetcode - 303 area and retrieval - array immutable (design prefix and array)
Boomi荣获“多元化最佳首席执行官奖”和“职业成长最佳公司奖”,在大型公司类别中跻身50强
ServletConfig 类和ServletContext 类
Matlab randInt, matlab randInt function usage "recommended collection"
Basic usage of MFC thread afxbeginthread, passing multiple parameters
开发者如何为React Native选择合适的数据库
SVD singular value decomposition derivation and application and signal recovery