Last active
October 26, 2017 05:07
-
-
Save iamstoick/94e9bd953c01a4ce8dad to your computer and use it in GitHub Desktop.
MySQL show processlist in realtime
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
watch -n1 'mysql -uUSER -pPASSWORD --execute="SHOW PROCESSLIST"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
watch -n1 'mysql -uroot --execute="SHOW FULL PROCESSLIST"'
(tested with mysql 5.7)
I think the proper option is --execute not --exec