Documentation Home
MySQL Cluster Manager 1.2 User Manual
Download this Manual
PDF (US Ltr) - 1.6Mb
PDF (A4) - 1.6Mb
EPUB - 0.9Mb
HTML Download (TGZ) - 0.9Mb
HTML Download (Zip) - 0.9Mb


4.4.2 The delete cluster Command

delete cluster [--removedirs] cluster_name

This command deletes the cluster named cluster_name; that is, it removes the process from the listing from this cluster, as well as any configuration and data files relating to this cluster.

delete cluster does not remove any MySQL Cluster binaries from hosts.

This example demonstrates how to delete a cluster named mycluster, along with its configuration and data files:

mcm> delete cluster mycluster;
+------------------------------+
| Command result               |
+------------------------------+
| Cluster deleted successfully |
+------------------------------+
1 row in set (1.22 sec)

delete cluster fails if the cluster to be deleted is running, as shown here:

mcm> delete cluster mycluster;
ERROR 5010 (00MGR): All processes must be stopped to delete cluster mycluster

You must shut down the cluster first, using stop cluster.


User Comments
Sign Up Login You must be logged in to post a comment.