show engine innodb status\G 查看最近死锁信息

davidhxy1234 2014-04-14 04:06:19
网上有人说用show engine innodb status\G 可以查看最近死锁信息,可是我的mysql是5.5.15,执行的时候报sql错误You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'show engine innodb status G' at line 1
如果用show engine innodb status却是空的信息,可程序中却明明提示deadlock
有没有其他或者更好的记录死锁日志信息的方法,多谢指教!
...全文
930 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
yunlong167167 2015-04-28
  • 打赏
  • 举报
回复
SELECT * FROM information_schema.INNODB_TRX\G;
davidhxy1234 2014-04-14
  • 打赏
  • 举报
回复
引用 3 楼 wwwwb 的回复:
SELECT * FROM information_schema.INNODB_TRX 结果是什么,show engine innodb status应该可以
结果为空,只能通过cmd或者shell登录mysql,然后运行show engine innodb status\G才能查看详细信息!
wwwwb 2014-04-14
  • 打赏
  • 举报
回复
SELECT * FROM information_schema.INNODB_TRX 结果是什么,show engine innodb status应该可以
benluobo 2014-04-14
  • 打赏
  • 举报
回复
select * from information_schema.INNODB_LOCKS
benluobo 2014-04-14
  • 打赏
  • 举报
回复
show engine innodb status\G 只能在shell或者cmd上执行

56,678

社区成员

发帖
与我相关
我的任务
社区描述
MySQL相关内容讨论专区
社区管理员
  • MySQL
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧