0

无法启动 MySQL Cluster 上的管理节点。

我正在发出 ff 命令。

ndb_mgmd -f /var/lib/mysql-cluster/config.ini --initial --configdir=/var/lib/mysql-cluster/ --ndb-nodeid=1

我得到了 ff 错误:

MySQL 集群管理服务器 mysql-5.5.22 ndb-7.2.6 2012-07-05 02:45:24 [MgmtSrvr] 错误 -- 根据配置,此节点应具有的主机名与本地接口不匹配。尝试绑定“192.168.177.134”失败并出现错误:99“无法分配请求的地址”

配置文件

[ndbd default]
NoOfReplicas=2

[ndb_mgmd]
hostname=192.186.177.134
datadir=/var/lib/mysql-cluster

[ndbd]
hostname=192.168.177.132
datadir=/usr/local/mysql/data

[ndbd]
hostname=192.186.177.133
datadir=/usr/local/mysql/data

[mysqld]
hostname=192.168.177.131
4

1 回答 1

0

config.ini,有时你有192.168,有时192.186。尤其:

[ndb_mgmd]
hostname=192.186.177.134
datadir=/var/lib/mysql-cluster

应该:

[ndb_mgmd]
hostname=192.168.177.134
datadir=/var/lib/mysql-cluster

The hostname will then match that to which ndb_mgmd was attempting to bind, as described in the error message. You should also correct the hostname in the [ndbd] section.

于 2012-07-05T07:02:30.440 回答