时间:2021-07-01 10:21:17 帮助过:2人阅读
mysql> show status;
...
.....
mysql> show processlist;
+------+-------------+-----------------+------+---------+--------+-----------------------------------------------------------------------------+------------------+
| Id   | User        | Host            | db   | Command | Time   | State                                                                       | Info             |
+------+-------------+-----------------+------+---------+--------+-----------------------------------------------------------------------------+------------------+
|    1 | system user |                 |      | Daemon  |      1 | Waiting for event from ndbcluster                                           | NULL             |
|    2 | dbsup       | STATION_A:59079 | NULL | Sleep   |      1 |                                                                             | NULL             |
|    3 | system user |                 | NULL | Connect | 490535 | Waiting for master to send event                                            | NULL             |
|    4 | system user |                 | NULL | Connect |      1 | Slave has read all relay log; waiting for the slave I/O thread to update it | NULL             |
| 9721 | admin       | localhost       | hlr  | Query   |      0 | init                                                                        | show processlist |
+------+-------------+-----------------+------+---------+--------+-----------------------------------------------------------------------------+------------------+
5 rows in set (0.00 sec)
看存储引擎参数:
mysql> show engine innodb status\G;
*************************** 1. row ***************************No query specified
mysql> show engine ndbcluster status\G;
*************************** 1. row ***************************
  Type: ndbcluster
  Name: connection
Status: cluster_node_id=116, connected_host=STATION_A, connected_port=2200, number_of_data_nodes=14, number_of_ready_data_nodes=14, connect_count=0
*************************** 2. row ***************************
  Type: ndbcluster
  Name: NdbTransaction
Status: created=14, free=14, sizeof=368
*************************** 3. row ***************************
  Type: ndbcluster
  Name: NdbOperation
Status: created=28, free=28, sizeof=944
*************************** 4. row ***************************
  Type: ndbcluster
  Name: NdbIndexScanOperation
Status: created=0, free=0, sizeof=1152
*************************** 5. row ***************************
  Type: ndbcluster
  Name: NdbIndexOperation
Status: created=0, free=0, sizeof=952
*************************** 6. row ***************************
  Type: ndbcluster
  Name: NdbRecAttr
Status: created=0, free=0, sizeof=88
*************************** 7. row ***************************
  Type: ndbcluster
  Name: NdbApiSignal
Status: created=16, free=16, sizeof=144
*************************** 8. row ***************************
  Type: ndbcluster
  Name: NdbLabel
Status: created=0, free=0, sizeof=200
*************************** 9. row ***************************
  Type: ndbcluster
  Name: NdbBranch
Status: created=0, free=0, sizeof=32
*************************** 10. row ***************************
  Type: ndbcluster
  Name: NdbSubroutine
Status: created=0, free=0, sizeof=72
*************************** 11. row ***************************
  Type: ndbcluster
  Name: NdbCall
Status: created=0, free=0, sizeof=24
*************************** 12. row ***************************
  Type: ndbcluster
  Name: NdbBlob
Status: created=0, free=0, sizeof=496
*************************** 13. row ***************************
  Type: ndbcluster
  Name: NdbReceiver
Status: created=0, free=0, sizeof=128
*************************** 14. row ***************************
  Type: ndbcluster
  Name: NdbLockHandle
Status: created=0, free=0, sizeof=48
*************************** 15. row ***************************
  Type: ndbcluster
  Name: binlog
Status: latest_epoch=2005758317166600, latest_trans_epoch=2005758317166596, latest_received_binlog_epoch=2005758317166600, latest_handled_binlog_epoch=2005758317166600, latest_applied_binlog_epoch=2005758317166596
15 rows in set (0.00 sec)
ERROR: 
No query specified
MYSQL show engine等实用 command
标签: