Skip to content

Instantly share code, notes, and snippets.

@juandazapata
Created March 21, 2013 13:22
Show Gist options
  • Save juandazapata/5212968 to your computer and use it in GitHub Desktop.
Save juandazapata/5212968 to your computer and use it in GitHub Desktop.
MySQL number of connections
mysql -u root -p -e"show processlist;"|awk '{print $3}'|awk -F":" '{print $1}'|sort|uniq -c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment