Created
June 5, 2017 15:48
-
-
Save victorpendleton/d6bf500812891258c47917829f64e023 to your computer and use it in GitHub Desktop.
Replication blocked
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 p.id | |
, p.user | |
, p.host | |
, p.command | |
, p.time | |
, p.time/60 as minutes | |
, p.state | |
, substring(p.info, 1, 80) as snippet | |
FROM information_schema.processlist p | |
WHERE p.user IN ('system user') | |
AND p.state LIKE 'Waiting for table metadata lock' | |
ORDER BY p.time; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment