MariaDB社区

标题: 谁安装过mysql集群的,求助 [打印本页]

作者: swarding99    时间: 2013-4-8 11:43
标题: 谁安装过mysql集群的,求助
1. 安装mysql-cluster-gpl-7.2.10-linux2.6-x86_64.tar.gz 集群,是否还要安装 mysql-server  ?  因为我发现mysql-cluster-gpl 已经包含了mysql-server

2. 按照网上给的资料配置完成,启动集群管理节点 报:Unable to connect with connect string: nodeid=0,localhost:1186 ?

3. 数据节点,用命令mysql -u root -p root 报 ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)  ?

希望高手们解决啊。
以下是我集群的配置:
1. 操作系统 Red Hat Enterprise Linux Server release 6.3  x86_64  (Santiago) 64位的linux操作系统
2. 安装64位的 mysql-cluster-gpl-7.2.10-linux2.6-x86_64.tar.gz  软件
3. 管理节点 config.init  配置
         [ndb_mgmd]
hostname=192.168.77.200
datadir=/usr/local/mysql/log
NodeId=1
[ndbd default]
noofreplicas=1
[ndbd]
hostname=192.168.77.205
datadir=/usr/local/mysql/data
NodeId=2
[mysqld]
hostname=192.168.77.207
NodeId=3
[MYSQLD]
[MYSQLD]

4.  数据节点与SQL节点的配置如下 my.cnf
#Options for mysqld process
[mysqld]
ndbcluster #run NDB engine
#ndb-connectstring = MGM1 #location of MGM node(MGM1 is master management node)
#ndb-connectstring = MGM2 #location of MGM node(MGM2 is slave management node)
ndb-connectstring = 192.168.77.200
#Options for ndbd process
[mysql_cluster]
#ndb-connectstring = MGM1 #location of MGM node
#ndb-connectstring = MGM2 #location of MGM node
ndb-connectstring = 192.168.77.200
   忘高手们解决





欢迎光临 MariaDB社区 (http://123.56.88.72/) Powered by Discuz! X3.2