查看锁等信息,包括锁信息:
select "HOLD:",ph.id h_processid,trh.trx_id h_trx_id,trh.trx_started h_started,trh.trx_state h_state,lsh.lock_table h_table,lsh.lock_index h_index,lsh.lock_mode as h_lock_mode,lsh.lock_type h_lock_type,ph.user h_user,ph.host h_host,ph.command p_command,ph.info p_info,"WAIT:",pw.id w_processid,trw.trx_id w_trx_id,trw.trx_started w_started,trw.trx_state w_state,lsw.lock_table w_table,lsw.lock_index w_index,lsw.lock_mode  w_lock_mode,lsw.lock_type w_lock_type,pw.user w_user,pw.host w_host,pw.command w_command,pw.info w_info from information_schema.INNODB_LOCK_WAITS lw  inner join information_schema.INNODB_TRX trh on trh.trx_id=lw.blocking_trx_id inner join information_schema.PROCESSLIST ph on trh.trx_mysql_thread_id=ph.id  left join information_schema.INNODB_LOCKS lsh on lsh.lock_trx_id=trh.trx_id  inner join  information_schema.INNODB_TRX trw on trw.trx_id=lw.requesting_trx_id inner join information_schema.PROCESSLIST pw on trw.trx_mysql_thread_id=pw.id  left join information_schema.INNODB_LOCKS lsw on lsw.lock_trx_id=trw.trx_id ;
 
查找当前进程的执行状态:
SELECT    a.trx_id,   trx_state,   trx_started,   b.id AS thread_id,   b.info,   b.user,   b.host,   b.db,   b.command,   b.state  FROM   information_schema.`INNODB_TRX` a,   information_schema.`PROCESSLIST` b  WHERE a.trx_mysql_thread_id = b.id  ORDER BY a.trx_started;

最新文章

  1. 笔记本双系统XP与Ubuntu,重装XP后如何恢复grup引导,另附操作系统启动过程
  2. windows系统IIS环境下如何部署MVC项目
  3. python ABC
  4. 天气预报API(四):全国城市代码列表(“新编码”)
  5. The Parallel Challenge Ballgame[HDU1101]
  6. Atitit.现实生活中最好使用的排序方法-----ati排序法总结
  7. HDU 1698 Just a Hook(线段树区间替换)
  8. jquery加载页面的方法(页面加载完成就执行)
  9. 同样的一句SQL语句在pl/sql 代码块中count 没有数据,但是直接用SQl 执行却可以count 得到结果
  10. bzoj 1056 [HAOI2008]排名系统(1862 [Zjoi2006]GameZ游戏排名系统)
  11. 第一章 工欲善其事 必先利其器—Android SDK工具(3)
  12. UIPasteboard 粘贴板
  13. 使用php完成常见的"文件上传"功能
  14. ignite服务中的bean注入为空
  15. C#--深入理解类型
  16. [Swift]LeetCode316. 去除重复字母 | Remove Duplicate Letters
  17. Javascript 3.2
  18. Alpha(2/10)
  19. Spring Boot 1.5.10 发布:修复重要安全漏洞!!!
  20. mysql 取整数或小数或精确位数

热门文章

  1. Cocos2d-js 开发记录-初始
  2. BZOJ3033: 太鼓达人(欧拉回路)
  3. ASP.NET MVC 音乐商店 - 6. 使用 DataAnnotations 进行模型验证
  4. mybatis中sql语句查询操作
  5. 调查UIRecorder 测试报告的CI(集成)实现方式
  6. 再学UML-深入浅出UML类图(一)
  7. 将nodeList转换为数组(兼容性)
  8. 页面三个txt加载联动省市县的代码,类似淘宝的收货地址的布局
  9. Android——Activity生命周期
  10. SPOJ 694 不同子串个数