1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
SELECT
a.USER,
a.HOST,
a.db,
b.thread_os_id,
b.thread_id,
a.id processlist_id,
a.command,
a.time,
a.state,
a.info
FROM
information_schema.PROCESSLIST a,
performance_schema.threads b
WHERE
a.id = b.processlist_id
AND b.thread_os_id = <具体线程id>;
|