Article Listing 1 Listing 2 dec2006.tar

Listing 2 Configuration file

[NDBD DEFAULT]
# This is how many data nodes we have
NoOfReplicas=2
[MYSQLD DEFAULT]
[NDB_MGMD DEFAULT]
[TCP DEFAULT]

# Management Server Configuration
[NDB_MGMD]
# IP address of this node (mysqlmanage)
HostName=192.168.0.10

# Storage Server Configurations
[NDBD]
# IP address of the first data node (mysqldata1)
HostName=192.168.0.11
# Directory on the first data node where data is kept
DataDir=/var/lib/mysql-cluster
[NDBD]
# IP address of the second data node (mysqldata2)
HostName=192.168.0.12
# Directory on the second data node where data is kept
DataDir=/var/lib/mysql-cluster

# This defines 2 MySQL cluster clients
[MYSQLD]
[MYSQLD]