Last active
April 16, 2020 10:12
-
-
Save maheshgawali/9d9ebc7bf10e0f7864c2be7befa9c9b8 to your computer and use it in GitHub Desktop.
get the most time consuming cmd from mysql (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
# HIGHEST TIME CONSUMING QUERY AT PRESENT | |
select ID,INFO,COMMAND,STATE, TIME from information_schema.processlist where STATE != 'Sleep' and COMMAND!='Sleep' order by TIME desc limit 1\G |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment