view mysql connections code example Example: mysql show current connections show status where `variable_name` = 'Threads_connected';