Skip to content

Instantly share code, notes, and snippets.

@jtouza
Created April 21, 2023 09:23
Show Gist options
  • Save jtouza/8e5fb3d8a6d96468d440004ad5a30a0c to your computer and use it in GitHub Desktop.
Save jtouza/8e5fb3d8a6d96468d440004ad5a30a0c to your computer and use it in GitHub Desktop.
MySQL watch sleep queries
#!/usr/bin/env bash
watch "mysqladmin -uMYSQL_USER -pMYSQL_PASS processlist|grep -vi sleep"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment