Check the number connections to mysql server using Linux command

In this tutorial, I will explain how to check the number of connections to mysql server using linux command.

check the number of connections to database

Command :netstat -antp | grep :3306 | wc -l  

//3306 is Mysql port Number

Linux command to check the number connections to mysql server

check the number of connections to FTP

Command :netstat -antp | grep :21 | wc -l  

//21 is FTP port number