Documentation Home
MySQL Cluster Manager 8.0 User Manual
Related Documentation Download this Manual
PDF (US Ltr) - 1.3Mb
PDF (A4) - 1.3Mb


5.4.8 The stop cluster Command

Press CTRL+C to copy
stop cluster cluster_name

This command stops the cluster named cluster_name, if it is running, as shown in this example:

Press CTRL+C to copy
mcm> stop cluster mycluster; +------------------------------+ | Command result | +------------------------------+ | Cluster stopped successfully | +------------------------------+ 1 row in set (21.31 sec)

stop cluster fails if the cluster is not in an operational state (see Section 5.4.6, “The show status Command”, for information about obtaining the cluster's status):

Press CTRL+C to copy
mcm> show status --cluster mycluster; +-----------+---------+---------+ | Cluster | Status | Comment | +-----------+---------+---------+ | mycluster | stopped | | +-----------+---------+---------+ 1 row in set (0.01 sec) mcm> stop cluster mycluster; ERROR 5006 (00MGR): Cluster mycluster is stopped

stop cluster cannot be used on a cluster created for import until the import has been completed. See Section 5.4.1, “The create cluster Command”, and Section 4.5, “Importing MySQL NDB Clusters into MySQL Cluster Manager”, for more information.