mysqlcluster数据节点启不了
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了mysqlcluster数据节点启不了,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含2242字,纯文字阅读大概需要4分钟。
内容图文
![mysqlcluster数据节点启不了](/upload/InfoBanner/zyjiaocheng/569/3c4f50de8b4b4afd8a23ec86bdc52a03.jpg)
[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)
内容总结
以上是互联网集市为您收集整理的mysqlcluster数据节点启不了全部内容,希望文章能够帮你解决mysqlcluster数据节点启不了所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。