10

Where can I find the list of connections open on a remote MySQL AWS RDS machine

netstat -n |grep 3306|grep ESTABLISHED|wc -l

I do this to find connections which are ESTABLISHED locally, how do I do this for remote instance.

hrunting
  • 3,537
  • 24
  • 23
Sam
  • 7,451
  • 19
  • 54
  • 92

1 Answers1

30

Connect to the MySQL AWS RDS instance and run the command

SHOW PROCESSLIST

This will list every connection to that MySQL instance, including the host and the port. It wil also show what command they are currently executing. If you want to see the full command, run

SHOW FULL PROCESSLIST

MySQL SHOW PROCESSLIST Reference Page

hrunting
  • 3,537
  • 24
  • 23