MariaDB社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2760|回复: 3
打印 上一主题 下一主题

谁在或做过mysql cluster NDB 7.2集群?

[复制链接]
跳转到指定楼层
1#
发表于 2012-11-8 10:50:04 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
mysqld启动了,但是结果是这样的:
ndb_mgm> show;
Cluster Configuration
---------------------
[ndbd(NDB)]     2 node(s)
id=2    @192.168.1.12  (mysql-5.5.27 ndb-7.2.8, Nodegroup: 0, Master)
id=3    @192.168.1.13  (mysql-5.5.27 ndb-7.2.8, Nodegroup: 0)
[ndb_mgmd(MGM)] 1 node(s)
id=1    @192.168.1.10  (mysql-5.5.27 ndb-7.2.8)
[mysqld(API)]   1 node(s)
id=4 (not connected, accepting connect from 192.168.1.10)

mysqld连不上啊!my.cnf主要配置如下:

[mysql_cluster]
# Options for ndbd process:
ndb-connectstring=192.168.1.10
# Here follows entries for some specific programs
# The MySQL server
[mysqld]
ndbcluster
port            = 3306
user            =mysql
max_connections =5000
ndb-connectstring=192.168.1.10
skip-external-locking
key_buffer_size = 16M
max_allowed_packet = 1M
table_open_cache = 64
sort_buffer_size = 512K
net_buffer_length = 8K
read_buffer_size = 256K
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 8M
log-bin=bin-log
slow_query_log=1
slow_query_log_file=slow-log
log-error=error-log

mysql> show engines\G
*************************** 1. row ***************************
      Engine: ndbcluster
     Support: YES
     Comment: Clustered, fault-tolerant tables
Transactions: YES
          XA: NO
  Savepoints: NO
有ndb引擎!sql节点怎么不能加入到集群?
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 转播转播 分享分享 分享淘帖 顶1 踩
2#
发表于 2012-12-11 11:52:38 | 只看该作者
ndb-connectstring=192.168.1.10:1186
3#
发表于 2013-1-6 21:15:00 | 只看该作者
本帖最后由 Shaquile 于 2013-1-6 22:20 编辑


ndb_mgmd(MGM)] 1 node(s)
id=1    @192.168.1.10  (mysql-5.5.27 ndb-7.2.8)
[mysqld(API)]   1 node(s)
id=4 (not connected, accepting connect from 192.168.1.10)

这个配置说明了,只有一个slot留给id=4的节点,所以,别的node不能连接。
你可以在config.ini中增加几个空的[mysqld]
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|手机版|MariaDB社区 ( 京ICP备07012489号    |
业务联系: QQ:48474881; 邮箱: 48474881@qq.com; 电话:13911732319
声明:本站部分文章是网友转载,若未经作者同意或署名有误,请联系网站管理员。

GMT+8, 2024-9-20 14:28 , Processed in 0.063234 second(s), 19 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表