Skip to content

Instantly share code, notes, and snippets.

@gustavobgama
Created May 28, 2013 13:23
Show Gist options
  • Save gustavobgama/5662717 to your computer and use it in GitHub Desktop.
Save gustavobgama/5662717 to your computer and use it in GitHub Desktop.
Show mysql processlist with periodical refresh
watch -n1 'mysql --user=user --password=password database --execute="SHOW PROCESSLIST"'
@johndpope
Copy link

watch -n1 'mysql --user=user --password=password database --execute="SELECT * FROM information_schema.processlist WHERE command != 'Sleep' ORDER BY id;"'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment