The question:
I have a running MariaDB which has no max_used_connections
variable. How can I see it?
I got the list of all variables using the following command from the shell:
SHOW VARIABLES;
but it was not there.
The Solutions:
Below are the methods you can try. The first solution is probably the best. Try others if the first one doesn’t work. Senior developers aren’t just copying/pasting – they read the methods carefully & apply them wisely to each case.
Method 1
Max_used_connections is a status variable, not a system variable, so therefore the incantation to show its value is:
SHOW GLOBAL STATUS LIKE 'Max_used_connections';
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0