Heim > Datenbank > MySQL-Tutorial > mysql cluster数据节点启不了

mysql cluster数据节点启不了

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Freigeben: 2016-06-06 09:33:13
Original
1903 Leute haben es durchsucht

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)

Verwandte Etiketten:
Quelle:php.cn
Erklärung dieser Website
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn
Beliebte Tutorials
Mehr>
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage