Which processes have connections to my database?
Try: sudo lsof -iTCP:3306 -sTCP:ESTABLISHED Info: lsof -iTCP:PORT lists active network connections on a port. -sTCP:ESTABLISHED filters out listening sockets to show active connections only. Examples: $ sudo lsof -iTCP:80 -sTCP:LISTEN # Active listeners on port 80 $ sudo lsof -i @192.168.1.100 # Filter by remote IP $ sudo lsof -Pn […]
Read More