繁体   English   中英

mysql群集管理器:无法连接到mysql客户端实例mysql群集7.5.5

[英]mysql cluster manager : Unable to connect to mysql client instance mysql cluster 7.5.5

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

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

  • 在节点和服务器管理器上安装了MySQL Cluster Manager 7.5.5
  • 为mysql集群管理器创建了conf文件,如下所述
  • 创建mysql用户和组
  • 在集群管理器上执行(mysql-cluster / config.ini)
  • 在节点1和节点2上执行相同的步骤
  • 在节点1和节点2上安装了mysql服务器和客户端
  • 在节点1和节点2上执行(mysql-cluster / config.ini)
  • 运行ndb时,节点1和节点2提供了预期的输出-移至集群管理器
  • 通过集群管理器,无法运行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

Node1和Node 2已启动并正在运行。 Mysql集群管理器可以连接到那些节点。

NDB管理器和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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM