当前位置:首页 > 数据库 > 正文

通过 Linux 系统线程查找 MySQL 8.0 进程的线程

查看 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