MySQL show processlist

To see currently running MySQL processes, login to MySQL server, run in MySQL command prompt, run the command

show processlist;

To see the full SQL command, use

show full processlist;

You can also use the following command from the bash command prompt

Advertisement

mysql --skip-column-names --batch -e 'show processlist'

To see the number of SQL processes, use

mysql --skip-column-names --batch -e 'show processlist' | wc -l
Add a comment

Leave a Reply

Your email address will not be published. Required fields are marked *

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Advertisement