Created
December 24, 2018 21:27
-
-
Save russianryebread/5420a51647db7b2eb58a1e514f354df0 to your computer and use it in GitHub Desktop.
Get connection counts by user in MySQL
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
SELECT USER, count(*) AS connection_count | |
FROM information_schema.processlist | |
GROUP BY USER | |
ORDER BY connection_count DESC; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment