zoukankan      html  css  js  c++  java
  • mysql 监控 大批量的插入,删除,和修改

    监控大批量的插入,修改和删除:
    
    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)
    
    

  • 相关阅读:
    使用RazorGenerator对视图View进行单元测试
    C#常用获取本周、本月、本季度、本年的时间起止段代码
    Redis使用记录
    Git和ConEmu
    mongodb单索引的升序和降序
    AES 加密解密 php c#
    redis 外网连接错误
    .net mvc 分页
    检查Windows上安装的.net版本
    sqlserver跨服务器查询
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13350807.html
Copyright © 2011-2022 走看看