In this post, I provide different ways to show currently running processes and sessions in MySQL. Also, I provide way to kill running and sleep process in MySQL.
When DBA is performing stuff like, monitoring database at that time it is required to find and kill some unwanted processes from MySQL Server.
How to find running processes / sessions?
Below are three different ways to find:
WHERE COMMAND != 'Sleep';
/*Execute using MySQL Console*/
mysqladmin -u root -p -i 1 processlist;
How to kill running processes / sessions?
KILL CONNECTION <processid>
Please share your ideas and opinions about this topic with me, your contribution will add true value to this topic.
If anyone has doubts on this topic then please do let me know by leaving comments or send me an email.
If you like this post, then please share it with others.
Please follow dbrnd.com, I will share my experience towards the success of Database Research and Development Activity.
I put up a post every day, please keep reading and learning.
Discover Yourself, Happy Blogging !
Anvesh M. Patel.