按照'Get MySQL Cluster Running-Linux'上的步驟,進行到如下步驟時:
[cuser1@localhost my_cluster]$ /home/cuser1/mysqlc/bin/ndb_mgmd -f conf/config.ini --initial --configdir=/home/cuser1/my_cluster/conf/
MySQL Cluster Management Server mysql-5.1.56 ndb-7.1.13
2011-06-07 15:25:37 [MgmtSrvr] WARNING -- at line 4: [MGM] id is deprecated, use NodeId instead
2011-06-07 15:25:37 [MgmtSrvr] WARNING -- at line 12: [DB] id is deprecated, use NodeId instead
2011-06-07 15:25:37 [MgmtSrvr] WARNING -- at line 16: [DB] id is deprecated, use NodeId instead
2011-06-07 15:25:37 [MgmtSrvr] WARNING -- at line 19: [API] id is deprecated, use NodeId instead
2011-06-07 15:25:37 [MgmtSrvr] WARNING -- at line 4: [MGM] id is deprecated, use NodeId instead
2011-06-07 15:25:37 [MgmtSrvr] WARNING -- at line 12: [DB] id is deprecated, use NodeId instead
2011-06-07 15:25:37 [MgmtSrvr] WARNING -- at line 16: [DB] id is deprecated, use NodeId instead
2011-06-07 15:25:37 [MgmtSrvr] WARNING -- at line 19: [API] id is deprecated, use NodeId instead
按提示所說,應該是config.ini檔案中的key name 不合適目前的版本了。將'id'更換成'NodeId'
[ndb_mgmd]
hostname=localhost
datadir=/home/cuser1/my_cluster/ndb_data
NodeId=1
[ndbd default]
noofreplicas=2
datadir=/home/cuser1/my_cluster/ndb_data
[ndbd]
hostname=localhost
NodeId=3
[ndbd]
hostname=localhost
NodeId=4
[mysqld]
NodeId=50