mysql 集群管理器:无法连接到 mysql 客户端实例 mysql 集群 7.5.5
mysql cluster manager : Unable to connect to mysql client instance mysql cluster 7.5.5
我遵循了下面提到的步骤link
- 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集群管理器
的配置文件
[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 客户端。
确保您已更改 selinux 设置。
执行-
setenforce 0
getenforce
- o/p 这个应该是
宽容
对于永久设置-
https://www.centos.org/docs/5/html/5.1/Deployment_Guide/sec-sel-enable-disable.html
我遵循了下面提到的步骤link
- 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集群管理器
的配置文件[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 客户端。
确保您已更改 selinux 设置。
执行-
setenforce 0
getenforce
- o/p 这个应该是
宽容
对于永久设置- https://www.centos.org/docs/5/html/5.1/Deployment_Guide/sec-sel-enable-disable.html