Active Connections on MySQL
Using a command
Option1
show status where variable_name = 'threads_connected';Option2
show processlist;Using Query
Option3
Reference
Last updated
show status where variable_name = 'threads_connected';show processlist;Last updated
select id,
user,
host,
db,
command,
time,
state,
info
from information_schema.processlist;