时间:2019-09-16 14:53:25 作者:无名 浏览量:52
16.# Options for data node "A":
17.# (one [ndbd] section per data node)
18.hostname=10.4.44.202 # Hostname or IP address
19.datadir=/usr/local/mysql/data # Directory for this data node's data files
20.
21.[mysqld]
22.# SQL node options:
23.hostname=10.4.44.201 # Hostname or IP address
24.# (additional mysqld connections can be
25.# specified for this node for various
26.# purposes such as running ndb_restore)
发动MySQL Cluster:
先发动Management节点:
1.shell> ndb_mgmd -f /var/lib/mysql-cluster/config.ini
再发动data
1.shell>ndbd
和SQL节点shell> groupadd mysql
01.shell>useradd-r -g mysql mysql
02.shell>cd/usr/local
03.shell>tarzxvf /path/to/mysql-VERSION-OS.tar.gz
04.shell>ln-s full-path-to-mysql-VERSION-OS mysql
05.shell>cdmysql
06.shell>chown-R mysql .
07.shell>chgrp-R mysql .
08.shell> scripts/mysql_install_db
09.shell> bin>mysqld
成功。在management节点,利用./ndb_mgm查看状况。 www.it165.net
1.ndb_mgm>show.
Centos下MYSQL Cluster NDB7.2部署实践教程图3
布置成功。
OneCoder注:这里一开始有一个误区,就是我根据文档误以为SQL节点布置的MySQL Server版别而不是Cluster版别,导致耽误了很多时刻。今日看一个错误出神的时候,才忽然醒悟,我是不是搞错了。急速替换了版别,这才成功。