Initial Startup Of Mysql Cluster - Oracle 5.0 Reference Manual

Table of Contents

Advertisement

hostname=192.168.0.30
datadir=/usr/local/mysql/data
[ndbd]
# Options for data node "B":
hostname=192.168.0.40
datadir=/usr/local/mysql/data
[mysqld]
# SQL node options:
hostname=192.168.0.20
After all the configuration files have been created and these minimal options have been specified, you
are ready to proceed with starting the cluster and verifying that all processes are running. We discuss
how this is done in
For more detailed information about the available MySQL Cluster configuration parameters and their
uses, see
Section 17.3.2, "MySQL Cluster Configuration
Configuration". For configuration of MySQL Cluster as relates to making backups, see
"Configuration for MySQL Cluster

17.2.3. Initial Startup of MySQL Cluster

Starting the cluster is not very difficult after it has been configured. Each cluster node process must
be started separately, and on the host where it resides. The management node should be started first,
followed by the data nodes, and then finally by any SQL nodes:
1. On the management host, issue the following command from the system shell to start the
management node process:
shell>
ndb_mgmd -f /var/lib/mysql-cluster/config.ini
2. On each of the data node hosts, run this command to start the
shell>
ndbd
3. If you used RPM files to install MySQL on the cluster host where the SQL node is to reside, you can
(and should) use the supplied startup script to start the MySQL server process on the SQL node.
Initial Startup of MySQL Cluster
# Hostname or IP address
# Directory for this data node's data files
# Hostname or IP address
# Directory for this data node's data files
# Hostname or IP address
# (additional mysqld connections can be
# specified for this node for various
# purposes such as running ndb_restore)
Note
The
database can be downloaded from http://dev.mysql.com/doc/,
world
where it can be found listed under "Examples".
Section 17.2.3, "Initial Startup of MySQL
Backups".
Note
The default port for Cluster management nodes is 1186; the default port for data
nodes is 2202. Beginning with MySQL 5.0.3, this restriction is lifted, and the
cluster automatically allocates ports for data nodes from those that are already
free.
Note
must be told where to find its configuration file, using the
ndb_mgmd
[1624]
--config-file
MySQL Cluster Management Server
For additional options which can be used with ndb_mgmd, see
Section 17.4.20, "Options Common to MySQL Cluster Programs — Options
Common to MySQL Cluster
Cluster".
Files", and
option. (See
Section 17.4.2,
Daemon", for details.)
Programs".
ndbd
1539
Section 17.3, "MySQL Cluster
Section 17.5.3.3,
"ndb_mgmd
— The
process:
or
-f

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the 5.0 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Mysql 5.0

Table of Contents