MySQL 9.0 發行說明
以下 sys
schema 檢視提供長時間執行的交易的進度報告
processlist
session
x$processlist
x$session
假設已啟用所需的檢測器和消費者,這些檢視的 progress
欄會顯示支援進度報告的階段已完成的工作百分比。
階段進度報告需要啟用 events_stages_current
消費者,以及需要進度資訊的檢測器。目前這些階段的檢測器支援進度報告
stage/sql/Copying to tmp table
stage/innodb/alter table (end)
stage/innodb/alter table (flush)
stage/innodb/alter table (insert)
stage/innodb/alter table (log apply index)
stage/innodb/alter table (log apply table)
stage/innodb/alter table (merge sort)
stage/innodb/alter table (read PK and internal sort)
stage/innodb/buffer pool load
對於不支援估計和完成工作報告的階段,或者如果未啟用所需的檢測器或消費者,則 progress
欄為 NULL
。