This section covers the steps necessary to install the correct executables for each type of MySQL Cluster node using RPM packages supplied by Oracle.
RPMs are available for both 32-bit and 64-bit Linux platforms. For a MySQL Cluster, three RPMs are required:
The Server RPM (for
example,
MySQL-Cluster-gpl-server-6.3.52-0.sles10.i586.rpm,
MySQL-Cluster-gpl-server-7.0.38-0.sles10.i586.rpm,
or
MySQL-Cluster-gpl-server-7.1.27-0.sles10.i586.rpm),
which supplies the core files needed to run a MySQL Server
with NDBCLUSTER storage engine
support (that is, as a MySQL Cluster SQL node).
If you do not have your own client application capable of
administering a MySQL server, you should also obtain and
install the Client RPM (for
example,
MySQL-Cluster-gpl-client-6.3.52-0.sles10.i586.rpm,
MySQL-Cluster-gpl-client-7.0.38-0.sles10.i586.rpm,
or
MySQL-Cluster-gpl-client-7.1.27-0.sles10.i586.rpm).
The Cluster storage engine
RPM (for example,
MySQL-Cluster-gpl-storage-6.3.52-0.sles10.i586.rpm,
MySQL-Cluster-gpl-storage-7.0.38-0.sles10.i586.rpm,
or
MySQL-Cluster-gpl-storage-7.1.27-0.sles10.i586.rpm),
which supplies the MySQL Cluster data node binary
(ndbd).
The Cluster storage engine management
RPM (for example,
MySQL-Cluster-gpl-management-6.3.52-0.sles10.i586.rpm,
MySQL-Cluster-gpl-management-7.0.38-0.sles10.i586.rpm,
or
MySQL-Cluster-gpl-management-7.1.27-0.sles10.i586.rpm)
which provides the MySQL Cluster management server binary
(ndb_mgmd).
In addition, you should also obtain the
NDB Cluster - Storage engine basic
tools RPM (for example,
MySQL-Cluster-gpl-tools-6.3.52-0.sles10.i586.rpm,
MySQL-Cluster-gpl-tools-7.0.38-0.sles10.i586.rpm,
or
MySQL-Cluster-gpl-tools-7.1.27-0.sles10.i586.rpm),
which supplies several useful applications for working with a
MySQL Cluster. The most important of these is the MySQL Cluster
management client (ndb_mgm). The
NDB Cluster - Storage engine extra
tools RPM (for example,
MySQL-Cluster-gpl-extra-6.3.52-0.sles10.i586.rpm,
MySQL-Cluster-gpl-extra-7.0.38-0.sles10.i586.rpm,
or
MySQL-Cluster-gpl-extra-7.1.27-0.sles10.i586.rpm)
contains some additional testing and monitoring programs, but is
not required to install a MySQL Cluster. (For more information
about these additional programs, see
Chapter 6, MySQL Cluster Programs.)
The MySQL Cluster version number in the RPM file names (shown
here as 6.3.52,
7.0.38, or
7.1.27) can vary according
to the version which you are actually using. It is
very important that all of the Cluster RPMs to be installed have
the same version number. The glibc
version number (if present), and architecture designation (shown
here as i586) should be appropriate to the
machine on which the RPM is to be installed.
Data nodes. On a computer that is to host a cluster data node it is necessary to install only the NDB Cluster - Storage engine RPM. To do so, copy this RPM to the data node host, and run the following command as the system root user, replacing the name shown for the RPM as necessary to match that of the RPM downloaded from the MySQL web site:
shell> rpm -Uhv MySQL-Cluster-gpl-storage-7.1.27-0.sles10.i586.rpm
The previous command installs the MySQL Cluster data node binary
(ndbd) in the /usr/sbin
directory.
SQL nodes. On each machine to be used for hosting a cluster SQL node, install the Server RPM by executing the following command as the system root user, replacing the name shown for the RPM as necessary to match the name of the RPM downloaded from the MySQL web site:
shell> rpm -Uhv MySQL-Cluster-gpl-server-7.1.27-0.sles10.i586.rpm
This installs the MySQL server binary
(mysqld) in the
/usr/sbin directory, as well as all needed
MySQL Server support files. It also installs the
mysql.server and
mysqld_safe startup scripts in
/usr/share/mysql and
/usr/bin, respectively. The RPM installer
should take care of general configuration issues (such as
creating the mysql user and group, if needed)
automatically.
To administer the SQL node (MySQL server), you should also install the Client RPM, as shown here:
shell> rpm -Uhv MySQL-Cluster-gpl-client-7.1.27-0.sles10.i586.rpm
This installs the mysql client program.
Management nodes. To install the MySQL Cluster management server, it is necessary only to use the NDB Cluster - Storage engine management RPM. Copy this RPM to the computer intended to host the management node, and then install it by running the following command as the system root user (replace the name shown for the RPM as necessary to match that of the Storage engine management RPM downloaded from the MySQL web site):
shell> rpm -Uhv MySQL-Cluster-gpl-management-7.1.27-0.sles10.i586.rpm
This installs the management server binary
(ndb_mgmd) to the
/usr/sbin directory.
You should also install the NDB
management client, which is supplied by the
Storage engine basic tools RPM.
Copy this RPM to the same computer as the management node, and
then install it by running the following command as the system
root user (again, replace the name shown for the RPM as
necessary to match that of the Storage
engine basic tools RPM downloaded from the MySQL web
site):
shell> rpm -Uhv MySQL-Cluster-gpl-tools-7.1.27-0.sles10.i586.rpm
The Storage engine basic tools
RPM installs the MySQL Cluster management client
(ndb_mgm) to the
/usr/bin directory.
You can also install the Cluster storage engine extra tools RPM, if you wish, as shown here:
shell> rpm -Uhv MySQL-Cluster-gpl-extra-7.1.27-0.sles10.i586.rpm
You may find the extra tools useful; however the Cluster storage engine extra tools RPM is not required to install a working MySQL Cluster.
See Installing MySQL on Linux Using RPM Packages, for general information about installing MySQL using RPMs supplied by Oracle.
After installing from RPM, you still need to configure the cluster as discussed in Section 4.3, “Initial Configuration of MySQL Cluster”.

User Comments
Add your own comment.