搭建MySQL集群时,先是只在本机(ip为192.168.24.179)上配置了管理节点、一个数据节点和一个sql节点。
数据节点能连接,但是sql节点老是连接不上。
如下是在ndb _ mgm中show出来的结果:
为什么show出来的sql节点那的信息老是“not connected,accepting connect from 192.168.24.179”啊?这是什么意思呢?是什么原因造成的?
下面是config.ini配置
config.ini
[ndbd default]
# Options affecting ndbd processes on all data nodes:
NoOfReplicas=2 # Number of replicas
DataDir=C:/mysql/bin/cluster-data # Directory for each data node's data files
# Forward slashes used in directory path,
# rather than backslashes. This is correct;
# see Important note in text
DataMemory=80M # Memory allocated to data storage
IndexMemory=18M # Memory allocated to 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.
[ndb_mgmd]
# Management process options:
HostName=192.168.24.179 # Hostname or IP address of management node
DataDir=C:/mysql/bin/cluster-logs # Directory for management node log files
[ndbd]
# Options for data node "A":
# (one [ndbd] section per data node)
HostName=192.168.24.179 # Hostname or IP address
DataDir=C:/mysqldata
[ndbd]
# Options for data node "B":
HostName=192.168.24.200 # Hostname or IP address
DataDir=C:/mysqldata
[mysqld]
# SQL node A options:
HostName=192.168.24.179 # Hostname or IP address
[mysqld]
# SQL node B options:
HostName=192.168.24.200 # Hostname or IP address