Installing MySQL Cluster on Linux
1533
For general information about MySQL Cluster hardware, software, and networking requirements, see
Section 17.1.3, “MySQL Cluster Hardware, Software, and Networking Requirements”
.
17.2.1. Installing MySQL Cluster on Linux
This section covers installation of MySQL Cluster on Linux and other Unix-like operating systems.
While the next few sections refer to a Linux operating system, the instructions and procedures given
there should be easily adaptable to other supported Unix-like platforms.
Each MySQL Cluster host computer must have the correct executable programs installed. A host
running an SQL node must have installed on it a MySQL Server binary (
mysqld
). Management
nodes require the management server daemon (
ndb_mgmd
); data nodes require the data node
daemon (
ndbd
. It is not necessary to install the MySQL Server binary on management node hosts
and data node hosts. It is recommended that you also install the management client (
ndb_mgm
) on the
management server host.
Installation of MySQL Cluster on Linux can be done using precompiled binaries from Oracle
(downloaded as a .tar.gz archive), with RPM packages (also available from Oracle), or from source
code. All three of these installation methods are described in the section that follow.
Regardless of the method used, it is still necessary following installation of the MySQL Cluster binaries
to create configuration files for all cluster nodes, before you can start the cluster. See
Section 17.2.2,
“Initial Configuration of MySQL Cluster”
.
17.2.1.1. Installing a MySQL Cluster Binary Release on Linux
This section covers the steps necessary to install the correct executables for each type of Cluster node
from precompiled binaries supplied by Oracle.
For setting up a cluster using precompiled binaries, the first step in the installation process for each
cluster host is to download the latest MySQL 5.0 binary archive from the MySQL downloads page.
We assume that you have placed this file in each machine's
/var/tmp
directory. (If you do require a
custom binary, see
Section 2.17.2, “Installing MySQL from a Development Source Tree”
.)
Note
After completing the installation, do not yet start any of the binaries. We show
you how to do so following the configuration of the nodes (see
Section 17.2.2,
“Initial Configuration of MySQL Cluster”
).
SQL nodes.
On each of the machines designated to host SQL nodes, perform the following steps
as the system
root
user:
1. Check your
/etc/passwd
and
/etc/group
files (or use whatever tools are provided by your
operating system for managing users and groups) to see whether there is already a
mysql
group
and
mysql
user on the system. Some OS distributions create these as part of the operating system
installation process. If they are not already present, create a new
mysql
user group, and then add
a
mysql
user to this group:
shell>
groupadd mysql
shell>
useradd -g mysql mysql
The syntax for
useradd
and
groupadd
may differ slightly on different versions of Unix, or they
may have different names such as
adduser
and
addgroup
.
2. Change location to the directory containing the downloaded file, unpack the archive, and create a
symbolic link named
mysql
to the
mysql
directory. Note that the actual file and directory names
vary according to the MySQL Cluster version number.
shell>
cd /var/tmp
shell>
tar -C /usr/local -xzvf mysql-5.0.96-linux-i686-glibc23.tar.gz
Содержание 5.0
Страница 1: ...MySQL 5 0 Reference Manual ...
Страница 18: ...xviii ...
Страница 60: ...40 ...
Страница 396: ...376 ...
Страница 578: ...558 ...
Страница 636: ...616 ...
Страница 844: ...824 ...
Страница 1234: ...1214 ...
Страница 1426: ...MySQL Proxy Scripting 1406 The following diagram shows an overview of the classes exposed by MySQL Proxy ...
Страница 1427: ...MySQL Proxy Scripting 1407 ...
Страница 1734: ...1714 ...
Страница 1752: ...1732 ...
Страница 1783: ...Configuring Connector ODBC 1763 ...
Страница 1793: ...Connector ODBC Examples 1773 ...
Страница 1839: ...Connector Net Installation 1819 2 You must choose the type of installation to perform ...
Страница 1842: ...Connector Net Installation 1822 5 Once the installation has been completed click Finish to exit the installer ...
Страница 1864: ...Connector Net Visual Studio Integration 1844 Figure 20 24 Debug Stepping Figure 20 25 Function Stepping 1 of 2 ...
Страница 2850: ...2830 ...
Страница 2854: ...2834 ...
Страница 2928: ...2908 ...
Страница 3000: ...2980 ...
Страница 3122: ...3102 ...
Страница 3126: ...3106 ...
Страница 3174: ...3154 ...
Страница 3232: ...3212 ...