您好,登錄后才能下訂單哦!
1、infomation_schema.innodb_lock_waits
+-------------------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------------------+-------------+------+-----+---------+-------+
| requesting_trx_id | varchar(18) | NO | | | | #請求鎖的事務(wù)id
| requested_lock_id | varchar(81) | NO | | | | #請求鎖的id
| blocking_trx_id | varchar(18) | NO | | | | #擁有鎖的事務(wù)id
| blocking_lock_id | varchar(81) | NO | | | | #擁有鎖的id
+-------------------+-------------+------+-----+---------+-------+
2、information_schema.innodb_trx
+----------------------------+---------------------+------+-----+---------------------+-------+
| Field | Type | Null | Key | Default |Extra |
+----------------------------+---------------------+------+-----+---------------------+-------+
| trx_id | varchar(18) | NO | | | | # 事務(wù)id
| trx_state | varchar(13) | NO | | | | # 事務(wù)的執(zhí)行狀態(tài)
| trx_started | datetime | NO | | 0000-00-00 00:00:00 | | # 事務(wù)開始的時(shí)間
| trx_requested_lock_id | varchar(81) | YES | | NULL | | # 事務(wù)正等待的鎖id
| trx_wait_started | datetime | YES | | NULL | | # 事務(wù)等待鎖開始的時(shí)間
| trx_weight | bigint(21) unsigned | NO | | 0 | | # 事務(wù)權(quán)重,主要反映事物修改和鎖定的行數(shù)
| trx_mysql_thread_id | bigint(21) unsigned | NO | | 0 | | # 事務(wù)相應(yīng)線程的id
| trx_query | varchar(1024) | YES | | NULL | | # 事務(wù)SQL語句
| trx_operation_state | varchar(64) | YES | | NULL | | # 事務(wù)的目前操作
| trx_tables_in_use | bigint(21) unsigned | NO | | 0 | | # 事務(wù)處理當(dāng)前SQL所用的表數(shù)
| trx_tables_locked | bigint(21) unsigned | NO | | 0 | | # 事務(wù)當(dāng)前SQL擁有行鎖的表數(shù)
| trx_lock_structs | bigint(21) unsigned | NO | | 0 | | # 事物保留的鎖數(shù)
| trx_lock_memory_bytes | bigint(21) unsigned | NO | | 0 | | # 事務(wù)鎖結(jié)構(gòu)所占內(nèi)存大小
| trx_rows_locked | bigint(21) unsigned | NO | | 0 | | # 事務(wù)鎖住的近似行數(shù)
| trx_rows_modified | bigint(21) unsigned | NO | | 0 | | # 事務(wù)修改和插入的行數(shù)
| trx_concurrency_tickets | bigint(21) unsigned | NO | | 0 | | # 指示當(dāng)前事務(wù)被交換出之前需處理工作量的數(shù)值
| trx_isolation_level | varchar(16) | NO | | | | # 當(dāng)前事務(wù)的隔離等級
| trx_unique_checks | int(1) | NO | | 0 | | # 唯一檢查對當(dāng)前事務(wù)是否開啟
| trx_foreign_key_checks | int(1) | NO | | 0 | | # 外鍵檢查對當(dāng)前事務(wù)是否開啟
| trx_last_foreign_key_error | varchar(256) | YES | | NULL | | # 最近外鍵報(bào)錯(cuò)的詳細(xì)信息
| trx_adaptive_hash_latched | int(1) | NO | | 0 | | # 當(dāng)前事務(wù)是否鎖定自適應(yīng)哈希索引
|
trx_adaptive_hash_timeout | bigint(21) unsigned | NO | | 0
| | # 指示當(dāng)前事務(wù)是否放棄或保留搜索自適應(yīng)索引的數(shù)值,為0時(shí),則立即放棄
| trx_is_read_only | int(1) | NO | | 0 | | # 當(dāng)前事務(wù)是否只讀,1為只讀
| trx_autocommit_non_locking | int(1) | NO | | 0 | | # 指示當(dāng)前事務(wù)是否為非鎖定自動(dòng)提交
+----------------------------+---------------------+------+-----+---------------------+-------+
3、information_schema.innodb_locks
+-------------+---------------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------------+---------------------+------+-----+---------+-------+
| lock_id | varchar(81) | NO | | | | # 鎖id
| lock_trx_id | varchar(18) | NO | | | | # 擁有鎖的事務(wù)id
| lock_mode | varchar(32) | NO | | | | # 鎖模式
| lock_type | varchar(32) | NO | | | | # 鎖類型
| lock_table | varchar(1024) | NO | | | | # 被鎖的表
| lock_index | varchar(1024) | YES | | NULL | | # 被鎖的索引
| lock_space | bigint(21) unsigned | YES | | NULL | | # 被鎖的表空間號(hào)
| lock_page | bigint(21) unsigned | YES | | NULL | | # 被鎖的頁號(hào)
| lock_rec | bigint(21) unsigned | YES | | NULL | | # 被鎖的記錄號(hào)
| lock_data | varchar(8192) | YES | | NULL | | # 被鎖的數(shù)據(jù)
+-------------+---------------------+------+-----+---------+-------+
4、information_schema.processlist
+---------+---------------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+---------+---------------------+------+-----+---------+-------+
| ID | bigint(21) unsigned | NO | | 0 | | # 連接線程的id
| USER | varchar(32) | NO | | | | # 登錄mysql的user
| HOST | varchar(64) | NO | | | | # 登錄mysql的主機(jī)名或地址:端口
| DB | varchar(64) | YES | | NULL | | # 登錄mysql的數(shù)據(jù)庫名
| COMMAND | varchar(16) | NO | | | | # 連接線程當(dāng)前運(yùn)行命令的類型
| TIME | int(7) | NO | | 0 | | # 連接線程處于當(dāng)前狀態(tài)的秒數(shù)
| STATE | varchar(64) | YES | | NULL | | # 連接線程當(dāng)前所處的狀態(tài)
| INFO | longtext | YES | | NULL | | # 連接線程當(dāng)前正執(zhí)行的語句
+---------+---------------------+------+-----+---------+-------+
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。