1.问题:
1)启动:
# ndb_mgmd -f config.ini 
MySQL Cluster Management Server mysql-5.1.56 ndb-7.1.15

正常!
但没有看到1186端口开启!因此
2)# ndb_mgm
-- NDB Cluster -- Management Client --
ndb_mgm> show
Unable to connect with connect string: nodeid=0,localhost:1186
Retrying every 5 seconds. Attempts left: 2^C
也就悲剧了!试图启动数据节点和mysql节点时,仍然提示无法连接到管理节点而在等待!
个人推测原因:1186端口没有开启!为什么第1)步中,我的1186端口无法开启了?2.配置文件:
1)管理节点:
config.ini:
[ndbd default]
NoOfReplicas=2[ndb_mgmd]
NodeId=1
hostname=**.**.**.**
datadir=/usr/local/mysql/data/[ndbd]
NodeId=2
hostname=**.**.**.**
datadir=/usr/local/mysql/data/[ndbd]
NodeId=3
hostname=**.**.**.**
datadir=/usr/local/mysql/data/[mysqld]
NodeId=4
hostname=**.**.**.**[mysqld]
NodeId=5
hostname=**.**.**.**2)my.cnf
[mysqld]
ndbcluster
ndb-connectstring=**.**.**.**
[mysql-cluster]
ndb-connectstring=**.**.**.**