Centos6.4 安装 Mysql Cluster5.7.4

2016-08-23 13:41:10 +08:00
 alfer
Centos6.4 安装 Mysql Cluster5.7.4 ,启动 ndbd 报错:
Unable to connect with connect string: nodeid=0,localhost:1186

我的 mysql cluster 配置如下:
my.cnf 配置
[mysqld]
# Options for mysqld process:
ndbcluster # run NDB storage engine
ndb-connectstring=192.168.6.154

[mysql_cluster]
# Options for MySQL Cluster processes:
ndb-connectstring=192.168.6.154 # location of management server


config.ini 配置
[ndbd default]
# Options affecting ndbd processes on all data nodes:
NoOfReplicas=1 # Number of replicas
DataMemory=80M # How much memory to allocate for data storage
IndexMemory=18M # How much memory to allocate for index storage
# For DataMemory and IndexMemory, we have used the
# default values. Since the "world" database takes up
# only about 500KB, this should be more than enough for
# this example Cluster setup.

[tcp default]
# TCP/IP options:
portnumber=2202 # This the default; however, you can use any
# port that is free for all the hosts in the cluster
# Note: It is recommended that you do not specify the port
# number at all and simply allow the default value to be used
# instead

[ndb_mgmd]
# Management process options:
id=1
hostname=192.168.6.154 # Hostname or IP address of MGM node
datadir=/var/lib/mysql-cluster/data # Directory for MGM node log files

[ndbd]
# Options for data node "B":
id=2
hostname=192.168.6.151 # Hostname or IP address
datadir=/usr/local/mysql/data # Directory for this data node's data files

[mysqld]
# SQL node options:
hostname=192.168.6.154 # Hostname or IP address
# (additional mysqld connections can be
# specified for this node for various
# purposes such as running ndb_restore)
1584 次点击
所在节点    问与答
0 条回复

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/301165

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX