[英]How to know the list of connections open on a remote MySQL AWS RDS machine
Where can I find the list of connections open on a remote MySQL AWS RDS machine 在哪里可以找到远程MySQL AWS RDS计算机上打开的连接列表
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. 我这样做是为了找到本地ESTABLISHED的连接,我该如何为远程实例做这个。
Connect to the MySQL AWS RDS instance and run the command 连接到MySQL AWS RDS实例并运行该命令
SHOW PROCESSLIST
This will list every connection to that MySQL instance, including the host and the port. 这将列出与该MySQL实例的每个连接,包括主机和端口。 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 MySQL SHOW PROCESSLIST参考页
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.