mysql cluster数据节点启不了
[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)
上一篇: Oracle性能究极优化
下一篇: php怎么过滤html标签?
推荐阅读
-
mysql匿名登录 导致创建不了数据库
-
关于mysql 导入excel 中 数据不全或导入不了的 处理办法(工具sqlyong)借鉴经验
-
MySQL数据库框架结构---Cluster,Replication,MyISAM综合
-
在cluster中的SQL节点上安装php-mysql会有冲突提示
-
Windows下MySQL客户端访问Linux下mysql-cluster的SQL节点服务器
-
MySQL Cluster 搭建中对数据库表的创建
-
Mysql Cluster的备份和恢复 mysql数据库运维
-
Mysql Cluster的备份和恢复 mysql数据库运维
-
MySQL Cluster验证管理节点配置中内存是否超标的脚本_MySQL
-
CentOS 6.2下MySQL Cluster 7.2 配置数据库集群