Use "Threads_connected" instead of "Max_used_connections"

SHOW GLOBAL STATUS LIKE 'Max_used_connections' is not the number of current connections.
Use SHOW GLOBAL STATUS LIKE 'threads_connected'

See MySQL manual
https://dev.mysql.com/doc/refman/5.5/en/server-status-variables.html
https://dev.mysql.com/doc/refman/5.6/en/server-status-variables.html

> Max_used_connections
> The maximum number of connections that have been in use simultaneously since the server started.
> Threads_connected
> The number of currently open connections.

Hiroaki