查看 MySQL 进程 ID
ps -ef | grep mysqld
查看 MySQL 的系统线程
top -Hp 14809
通过系统线程查看 MySQL 线程
select * from performance_schema.threads where THREAD_OS_ID=13730\G
查询相应的 processlist
select * from information_schema.processlist where id=756\G
查看 MySQL 进程 ID
ps -ef | grep mysqld
查看 MySQL 的系统线程
top -Hp 14809
通过系统线程查看 MySQL 线程
select * from performance_schema.threads where THREAD_OS_ID=13730\G
查询相应的 processlist
select * from information_schema.processlist where id=756\G