Innodb_trx表字段

  • Trx_id:InnoDB存储引擎内部唯一的事务id
  • Trx_status:当前的事务状态,running、lock wait、rolling back or commtting.
  • Trx_started:事务的开始hijack
  • Trx_requested_lock_id:事务等待的锁的id(如果事务状态不是lock wait,这个字段是null)
  • Trx_wait_started:事务等待的开始时间
  • Trx_weight:事务的权重,反应的是一个事务修改和锁定的行数,当发现死锁需要回滚时,权重越小的值被回滚。
  • Trx_mysql_thread_id:MySQL找那个的进程id,与show processlist中的id值相对应
  • Trx_query:事务运行的SQL语句
  • Trx_operation_state:事务当操作的类型如updating or deleting,stating index read等
  • Trx_tables_in_use:查询用到的表的数量
  • Trx_tables_locked:查询加行锁的表的数量
  • Trx_rows_locked:事务锁住的行数(不是准确数字)
  • Trx_rows_modified:事务插入或者修改的行数。
欢迎批评指正,提出问题,谢谢!
原文地址:https://www.cnblogs.com/xxeleanor/p/14970474.html