【发布时间】:2017-03-22 12:03:30
【问题描述】:
我按照以下链接中提到的步骤进行操作
- Mysql集群管理器7.5.5安装在节点和服务器管理器上
- 为mysql集群管理器创建了conf文件,如下所述
- 已创建 mysql 用户和组
- 在集群管理器上执行 (mysql-cluster/config.ini)
- 在节点 1 和节点 2 上运行相同的步骤
- 在节点 1 和节点 2 上安装了 mysql 服务器和客户端
- 在节点 1 和节点 2 上执行 (mysql-cluster/config.ini)
- 节点 1 和节点 2 在运行 ndb 时给出了预期的输出 - 转到集群管理器
- 在集群管理器上,无法运行mysql命令;需要这个来测试集群如何与本地服务器以及节点 1 和节点 2 上的服务器一起工作
下面是mysql集群管理器的conf文件
[ndb_mgmd]
# Management process options:
hostname=sit-mysql-manager-hostname.com # Hostname of the manager
datadir=/var/lib/mysql-cluster # Directory for the log files
[ndbd]
hostname=sit-mysql-node1-hostname.com # Hostname of the first data node
datadir=/usr/local/mysql/data # Remote directory for the data files
[ndbd]
hostname=sit-mysql-node2-hostname.com # Hostname of the second data node
datadir=/usr/local/mysql/data # Remote directory for the data files
[mysqld]
# SQL node options:
hostname=sit-mysql-manager-hostname.com # In our case the MySQL server/client is on the same Droplet as the cluster manager
节点 1 和节点 2 已启动并正在运行。 Mysql 集群管理器可以连接到这些节点。
无法连接到管理服务器中存在的 Mysql 集群管理器的 mysql 客户端。
【问题讨论】: