Created
February 3, 2017 10:52
-
-
Save mitkot/cf0ac8767b10d02935e711df25caa51f to your computer and use it in GitHub Desktop.
Show locks information for InnoDB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select t.trx_mysql_thread_id | |
, t.trx_state | |
, t.trx_started | |
, t.trx_isolation_level | |
, p.HOST host | |
, p.TIME seconds | |
, p.INFO query | |
from information_schema.INNODB_TRX t | |
inner join information_schema.PROCESSLIST p | |
on t.trx_mysql_thread_id = p.ID | |
\G |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment