In MySQL, Using SHOW GLOBAL VARIABLES
gives the ability to see global variables.
SHOW SESSION VARIABLES
are the variable settings for that session.
Is there a way to see the SESSION
variables of other active, connected users, from a superuser connection? For example, is there a query or view that would show me which active sessions have variables set differently from the global variables?
Best Answer
Question #1
No, there is no way.
Question #2
No, there is no way.
CAVEAT
From your individual connection you can run this
to see which session settings differ from the global settings.
For example, here is what I am running
Note the output of the query
If you want to find all the active connections that have this difference, perhaps you could have the application dump the output of that query to a text file along with the connection ID (using the CONNECTION_ID() function) and parse it as you wish.