liyihongcug 发表于 2009-5-4 20:51:42

mysql 根据进程ID找到SQL(linux+mysql)

mysql 根据进程ID找到SQL(linux+mysql)

mysql 根据进程ID找到SQL(oracle可以轻松得到)?

kider 发表于 2009-5-5 09:23:42

到MySQL里找吧
mysql> show processlist;

liyihongcug 发表于 2009-5-5 09:59:44

2# kider

mysql> show processlist;
+--------+----------+------------------+------------------+---------+------+-------+------------------+
| Id   | User   | Host             | db               | Command | Time | State | Info             |
+--------+----------+------------------+------------------+---------+------+-------+------------------+
| 243012 | betberewrain | 10.0.4.199:2262| smatrixdb   | Sleep   |    2 |       | NULL             |

7 rows in set

抱歉,楼上,我的问题 如何根据id找到对应的sql语句

liyihongcug 发表于 2009-5-5 10:36:18

thank u
I find it .
页: [1]
查看完整版本: mysql 根据进程ID找到SQL(linux+mysql)