You can run this command to find the maximum connections that the server has served since it starts? it’s useful when we want to know if sometimes we reach our maximum connections limit.
The query is:
SHOW STATUS WHERE variable_name = 'Max_used_connections';