To count the current MySQL connections of a MySQL server, use this Linux command line trick.
Assuming that you are already on the Linux host where the MySQL server is running, use the following command to find out the number of MySQL connections.
Note that we assume that the MySQL server is running on a default MySQL port (3306). If the MySQL server is using a non-standard port, replace 3306 with the port number.
Subscribe to Ask Xmodulo
Do you want to receive Linux related questions & answers published at Ask Xmodulo? Enter your email address below, and we will deliver our Linux Q&A straight to your email box, for free. Delivery powered by Google Feedburner.
Did you find this tutorial helpful? Then please be generous and support Xmodulo!