Documentation Home
MySQL 8.3 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr) - 40.8Mb
PDF (A4) - 40.9Mb
Man Pages (TGZ) - 294.0Kb
Man Pages (Zip) - 409.0Kb
Info (Gzip) - 4.0Mb
Info (Zip) - 4.0Mb
Excerpts from this Manual

25.6.17.55 ndbinfo server_operations

The server_operations NDB, SQL . It effectively is a subset of the NDB cluster_operations, SQL API 。

The server_operations :

  • mysql_connection_id

    MySQL Server ID

  • node_id

    ID

  • block_instance

    Block

  • transid

    ID

  • operation_type

    (see text for possible values)

  • state

    (see text for possible values)

  • tableid

    ID

  • fragmentid

    ID

  • client_node_id

    ID

  • client_block_ref

    Block

  • tc_node_id

    Coordinator ID

  • tc_block_no

    Coordinator

  • tc_block_instance

    Coordinator

The mysql_connection_id SHOW PROCESSLIST . It is obtained from the INFORMATION_SCHEMA table NDB_TRANSID_MYSQL_CONNECTION_MAP.

block_instance . Together with the block name, this number can be used to look up a given instance in the threadblocks table.

The transaction ID (transid) is a unique 64-bit number which can be obtained using the NDB API's getTransactionId() method. (Currently, the MySQL Server does not expose the NDB API transaction ID of an ongoing transaction.)

The operation_type column can take any one of the values READ, READ-SH, READ-EX, INSERT, UPDATE, DELETE, WRITE, UNLOCK, REFRESH, SCAN, SCAN-SH, SCAN-EX, or <unknown>.

state 列可以具有以下任何一个值:ABORT_QUEUEDABORT_STOPPEDCOMMITTEDCOMMIT_QUEUEDCOMMIT_STOPPEDCOPY_CLOSE_STOPPEDCOPY_FIRST_STOPPEDCOPY_STOPPEDCOPY_TUPKEYIDLELOG_ABORT_QUEUEDLOG_COMMIT_QUEUEDLOG_COMMIT_QUEUED_WAIT_SIGNALLOG_COMMIT_WRITTENLOG_COMMIT_WRITTEN_WAIT_SIGNALLOG_QUEUEDPREPAREDPREPARED_RECEIVED_COMMITSCAN_CHECK_STOPPEDSCAN_CLOSE_STOPPEDSCAN_FIRST_STOPPEDSCAN_RELEASE_STOPPEDSCAN_STATE_USEDSCAN_STOPPEDSCAN_TUPKEYSTOPPEDTC_NOT_CONNECTEDWAIT_ACCWAIT_ACC_ABORTWAIT_AI_AFTER_ABORTWAIT_ATTRWAIT_SCAN_AIWAIT_TUPWAIT_TUPKEYINFOWAIT_TUP_COMMITWAIT_TUP_TO_ABORT。(如果 MySQL 服务器正在运行 ndbinfo_show_hidden 启用,可以通过从 ndb$dblqh_tcconnect_state 表中选择来查看这些状态列表,该表通常是隐藏的。)

您可以通过检查 ndb_show_tables 的输出来从表 ID 获取 NDB 表的名称。

fragidndb_desc --extra-partition-info (短形式 -p) 输出中的分区号相同。

client_node_idclient_block_ref 中,client 指的是 NDB 集群 API 或 SQL 节点(即 NDB API 客户端或附加到集群的 MySQL 服务器)。

block_instancetc_block_instance 列提供 NDB 内核块实例编号。您可以使用这些编号从 threadblocks 表中获取特定线程的信息。