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:
but it was not there.
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.
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';