Bobby's Blog

How to Kill All MySQL Sleeping Processes

How to Kill All MySQL Sleeping Processes

Having a lot of MySQL sleeping processes can cause a huge spike in your CPU load.

Here is a simple one line command which would kill all of the current sleeping MySQL processes:

Hope that it helps.


About the author

Bobby

Linux System Administrator