博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
根据innodb_trx、innodb_locks、innodb_lock_waits得到详细的锁信息
阅读量:7108 次
发布时间:2019-06-28

本文共 525 字,大约阅读时间需要 1 分钟。

select r.trx_id waiting_trx_id,r.trx_mysql_thread_id waiting_thread,r.trx_query waiting_query,b.trx_id blocking_trx_id,b.trx_mysql_thread_id blocking_thread,b.trx_query blocking_query from information_schema.innodb_lock_waits w inner join information_schema.innodb_trx b on b.trx_id = w.blocking_trx_id inner join information_schema.innodb_trx r on r.trx_id = w.requesting_trx_id\G
 select * from information_schema.innodb_locks;
 
 select * from information_schema.innodb_trx;
 select * from information_schema.innodb_lock_waits; 

转载地址:http://cnthl.baihongyu.com/

你可能感兴趣的文章
第四课-第四讲04_04_grep及正则表达式
查看>>
Runtime Method Swizzling开发实例汇总
查看>>
4.22 磁盘限额
查看>>
录音文件转文字,有了这个工具,再也不用担心记不上笔记了
查看>>
ubuntu下helloworld
查看>>
什么是区块链
查看>>
MyEclipse 2014 加速启动设置
查看>>
UI设计师都关注的字体设计技巧
查看>>
Gdtool为您解答微信公众号手机无法直接下载APK文件是怎么回事
查看>>
apache下mod_jk模块学习随笔
查看>>
Android学习--03-活动
查看>>
VMware-workstation-full-9.0.0-812388附注册机
查看>>
重新安装.net framework 4.5
查看>>
常用开发资源收集
查看>>
年近30,朋友聚会都聊什么?
查看>>
发布jar包至maven本地库及私服
查看>>
Xshell 创建RSA登录Linux 主机
查看>>
非常酷的国外网站导航设计案例欣赏
查看>>
ASP.NET身份验证的探讨
查看>>
Java反射与注解
查看>>