>데이터 베이스 >MySQL 튜토리얼 >mysql cluster数据节点启不了

mysql cluster数据节点启不了

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB원래의
2016-06-06 09:33:131907검색

mysqlcluster

[root@NDB1 bin]# ./ndbd --initial
Unable to connect with connect string: nodeid=0,localhost:1186
Retrying every 5 seconds. Attempts left: 12 11 10 9 8 7 6 5 4 3 2 1, failed.
2016-04-03 06:33:35 [ndbd] ERROR -- Could not connect to management server, error: ''

MGM节点配置如下:
vi config.ini

[ndbd default]

NoOfReplicas=2
DataMemory=200M
IndexMemory=30M

[ndb_mgmd]
NodeId=1
hostname=192.168.137.102
datadir=/var/lib/mysql-cluster/_

[ndbd]
NodeId=2
hostname=192.168.137.101
datadir=/usr/local/mysql/data

[ndbd]
NodeId=3
hostname=192.168.137.103
datadir=/usr/local/mysql/data

[mysqld]
NodeId=4
hostname=192.168.137.104

[mysqld]
NodeId=5
hostname=192.168.137.105

[mysqld]
NodeId=6

MGM启动正常:
[root@MGM bin]# ./ndb_mgm
-- NDB Cluster -- Management Client --
ndb_mgm> show
Connected to Management Server at: localhost:1186

Cluster Configuration

[ndbd(NDB)] 2 node(s)
id=2 (not connected, accepting connect from 192.168.137.101)
id=3 (not connected, accepting connect from 192.168.137.103)

[ndb_mgmd(MGM)] 1 node(s)
id=1 @192.168.137.102 (mysql-5.6.28 ndb-7.4.10)

[mysqld(API)] 3 node(s)
id=4 (not connected, accepting connect from 192.168.137.104)
id=5 (not connected, accepting connect from 192.168.137.105)
id=6 (not connected, accepting connect from any host)

但启动数据节点报错:
[root@NDB1 bin]# ./ndbd --initial
Unable to connect with connect string: nodeid=0,localhost:1186
Retrying every 5 seconds. Attempts left: 12 11 10 9 8 7 6 5 4 3 2 1, failed.
2016-04-03 06:33:35 [ndbd] ERROR -- Could not connect to management server, error: ''

在数据节点connect管理节点没有问题:
[root@NDB1 bin]# ./ndb_mgm
-- NDB Cluster -- Management Client --
ndb_mgm> connect 192.168.137.102
Connected to Management Server at: 192.168.137.102:1186
ndb_mgm> show

Cluster Configuration

[ndbd(NDB)] 2 node(s)
id=2 (not connected, accepting connect from 192.168.137.101)
id=3 (not connected, accepting connect from 192.168.137.103)

[ndb_mgmd(MGM)] 1 node(s)
id=1 @192.168.137.102 (mysql-5.6.28 ndb-7.4.10)

[mysqld(API)] 3 node(s)
id=4 (not connected, accepting connect from 192.168.137.104)
id=5 (not connected, accepting connect from 192.168.137.105)
id=6 (not connected, accepting connect from any host)

성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.