4.6.3list processes命令

list processes cluster_name

此命令显示组成给定集群的所有进程。以下示例演示了如何列出属于名为 的集群的所有进程mycluster

mcm> list processes mycluster;
+--------+----------+----------+
| NodeId | Name     | Host     |
+--------+----------+----------+
| 49     | ndb_mgmd | flundra  |
| 1      | ndbd     | tonfisk  |
| 2      | ndbd     | grindval |
| 50     | mysqld   | haj      |
| 51     | mysqld   | torsk    |
| 52     | ndbapi   | *        |
+--------+----------+----------+
6 rows in set (0.03 sec)

cluster_name参数是必需 的。如果省略此参数,命令将失败并出现错误,如下所示:

mcm> list processes;
ERROR 6 (00MGR): Illegal number of operands