【问题标题】:mysql cluster manager : Unable to connect to mysql client instance mysql cluster 7.5.5mysql集群管理器:无法连接到mysql客户端实例mysql集群7.5.5
【发布时间】:2017-03-22 12:03:30
【问题描述】:

我按照以下链接中提到的步骤进行操作

https://www.digitalocean.com/community/tutorials/how-to-create-a-multi-node-mysql-cluster-on-ubuntu-16-04

  • 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 客户端。

【问题讨论】:

    标签: mysql cluster-computing


    【解决方案1】:

    确保您已更改 selinux 设置。

    执行-

    setenforce 0
    

    getenforce - o/p 应该是 允许的

    对于永久设置- https://www.centos.org/docs/5/html/5.1/Deployment_Guide/sec-sel-enable-disable.html

    【讨论】:

      猜你喜欢
      • 2016-05-16
      • 2022-11-27
      • 2023-04-04
      • 2020-10-10
      • 1970-01-01
      • 2018-10-20
      • 1970-01-01
      • 2021-04-16
      • 2019-07-31
      相关资源
      最近更新 更多