您的位置:首页 > 数据库 > SQL

mysql 监控 大批量的插入,删除,和修改

2016-05-11 17:20 453 查看
监控大批量的插入,修改和删除:

mysql> insert into aaa select * from aaa;

mysql> SELECT      trx_id,     trx_state,     trx_started,     trx_wait_started,     trx_weight,     trx_mysql_thread_id,     trx_query,     trx_operation_state,     TRX_TABLES_IN_USE,     trx_rows_locked  FROM     information_schema.innodb_trx;
+--------+-----------+---------------------+------------------+------------+---------------------+-----------------------------------+---------------------+-------------------+-----------------+
| trx_id | trx_state | trx_started         | trx_wait_started | trx_weight | trx_mysql_thread_id | trx_query                         | trx_operation_state | TRX_TABLES_IN_USE | trx_rows_locked |
+--------+-----------+---------------------+------------------+------------+---------------------+-----------------------------------+---------------------+-------------------+-----------------+
| 2350   | RUNNING   | 2016-05-11 16:51:11 | NULL             |    3760181 |                  83 | insert into aaa select * from aaa | fetching rows       |                 2 |         7354648 |
+--------+-----------+---------------------+------------------+------------+---------------------+-----------------------------------+---------------------+-------------------+-----------------+
1 row in set (0.03 sec)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: