I am using mytop, to search for slow queries. And for example I found that Thread with ID 110 is slow

But there is now such thread in my system.
ps -AL


What could be wrong? Why I doesn’t see Thread with ID 110? Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
the ID you see in mytop is the mysql connection id, and it is local to mysql. mytop doesn’t show you any process ids (the process could even be running on a remote machine).
If you want to find the process, you’ll need to use mysqladmin and netstat:
So, someone from host 192.168.170.66 is connecting to the mysql db from port 59161. Lets move over to that machine and find that process:
There we go, it’s the process with pid 13166
This is not possible atm. if the client connects with unix sockets though, only if they connect with TCP.