I'm trying to set up a mysql-cluster server and when I try to start the cluster manager with this command:
ndb_mgmd -f /var/lib/mysql-cluster/config.ini --configdir=/var/lib/mysql-cluster
is giving this message:
[MgmtSrvr] ERROR - Could not determine which nodeid to use for this node. Specify it with --ndb-nodeid = on command line
My configuration looks like this:
[ndbd default]
# Options affecting ndbd processes on all data nodes:
NoOfReplicas=2 # Number of replicas
DataMemory=80M # How much memory to allocate for data storage
IndexMemory=18M # How much memory to allocate for index storage
# For DataMemory and IndexMemory, we have used the
# default values. Since the "world" database takes up
# only about 500KB, this should be more than enough for
# this example NDB Cluster setup.
ServerPort=2202 # This the default value; however, you can use any
# port that is free for all the hosts in the cluster
# Note1: It is recommended that you do not specify the port
# number at all and simply allow the default value to be used
# instead
# Note2: The port was formerly specified using the PortNumber
# TCP parameter; this parameter is no longer available in NDB
# Cluster 7.5.
[ndb_mgmd]
# Management process options:
HostName=192.168.0.40 # Hostname or IP address of MGM node
DataDir=/var/lib/mysql-cluster # Directory for MGM node log files
[ndbd]
# Options for data node "A":
# (one [ndbd] section per data node)
HostName=192.168.0.41 # Hostname or IP address
NodeId=2 # Node ID for this data node
DataDir=/usr/local/mysql/data # Directory for this data node's data files
#Id=2
[ndbd]
# Options for data node "B":
HostName=192.168.0.42 # Hostname or IP address
NodeId=3 # Node ID for this data node
DataDir=/usr/local/mysql/data # Directory for this data node's data files
#Id=3
[mysqld]
# SQL node options:
HostName=192.168.0.43 # Hostname or IP address
# (additional mysqld connections can be
I did not know how to solve this problem, my hope is someone help me, I already researched this problem a lot, but I did not find a solution.
I'm using Ubuntu Server 16.04