delete package [{--hosts=|-h }host_list]package_namehost_list:host[,host[,...]] This command is used to unregister a package. More specifically, it removes any references to MySQL NDB Cluster software installations added to the agent's repository when the package was created.delete package doesnot remove any MySQL NDB Cluster installations; the command removes only references to the installations. Once a package has been unregistered, it can no longer be used for acreate cluster command. The MySQL NDB Cluster binaries remain, but cannot be used in a MySQL NDB Cluster administered using the MySQL Cluster Manager unless and until the base directory containing them has been registered with another package. (It is possible to register a base directory with multiple packages; seeSection 5.3.1, “Theadd package Command”, for more information and an example.)
If the--hosts option (short form:-h) is used with this command, the base directory settings for the host or hosts named by the option are removed as well. All hosts given in thehost_list must be members of the site to which the package is registered. Otherwise, the command fails.
A package that is in use by a cluster cannot be unregistered; the cluster must first be deleted (seeSection 5.4.2, “Thedelete cluster Command”).
Here is an example that demonstrates how to unregister a package namedmypackage:
mcm> delete package mypackage;+------------------------------+| Command result |+------------------------------+| Package deleted successfully |+------------------------------+1 row in set (1.23 sec) You can also verify that the package was unregistered using thelist packages command; the package name should no longer appear in the output of this command. If you attempt to use the unregistered package in acreate cluster command, the command fails, as shown here:
mcm> create cluster --package=mypackage > --processhosts=ndb_mgmd@tonfisk,ndbd@grindval,ndbd@flundra,mysqld@tonfisk mycluster;ERROR 4001 (00MGR): Package mypackage not defined Anupgrade cluster command that references an unregistered package also fails.
When IPv6-enabled Windows systems are used as MySQL NDB Cluster hosts under MySQL Cluster Manager, you must reference these hosts using IPv4 addresses. Otherwise, MySQL Cluster Manager will be unable to connect to the agent processes on those hosts. SeeSection 6.1, “MySQL Cluster Manager Usage and Design Limitations”.