Oracle 5.0 Reference Manual page 1567

Table of Contents

Advertisement

[ndb_mgmd]
HostName= myhost.example.com
[ndbd]
HostName= myhost.example.com
DataDir= /var/lib/mysql-cluster
[mysqld]
[mysqld]
[mysqld]
You can now start the
ndb_mgmd
file in its current working directory, so change location into the directory where the file is located and
then invoke ndb_mgmd:
shell>
cd /var/lib/mysql-cluster
shell>
ndb_mgmd
Then start a single data node by running ndbd:
shell>
ndbd
For command-line options which can be used when starting ndbd, see
Common to MySQL Cluster Programs — Options Common to MySQL Cluster
By default,
looks for the management server at
ndbd
Note
If you have installed MySQL from a binary tarball, you will need to specify the
path of the
found in /usr/local/mysql/bin.)
Finally, change location to the MySQL data directory (usually
mysql/data), and make sure that the
storage engine:
[mysqld]
ndbcluster
You can now start the MySQL server as usual:
shell>
mysqld_safe --user=mysql &
Wait a moment to make sure the MySQL server is running properly. If you see the notice
ended, check the server's
If all has gone well so far, you now can start using the cluster. Connect to the server and verify that the
storage engine is enabled:
NDBCLUSTER
shell>
mysql
Welcome to the MySQL monitor.
Your MySQL connection id is 1 to server version: 5.0.96
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql>
SHOW ENGINES\G
...
*************************** 12. row ***************************
Engine: NDBCLUSTER
Support: YES
Comment: Clustered, fault-tolerant, memory-based tables
*************************** 13. row ***************************
Engine: NDB
Support: YES
Comment: Alias for NDBCLUSTER
Quick Test Setup of MySQL Cluster
management server. By default, it attempts to read the
and
ndb_mgmd
ndbd
file contains the option necessary to enable the NDB
my.cnf
file to find out what went wrong.
.err
Commands end with ; or \g.
1547
Section 17.4.20, "Options
on port 1186.
localhost
servers explicitly. (Normally, these will be
/var/lib/mysql
config.ini
Programs".
or
/usr/local/
mysql

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents