130226 10:32:07 [Note] /Data/apps/mysql-5.5.12//bin/mysqld: Shutdown complete
解决:
[root@mysql4 /]# chmod 777 /tmp/ –R
[root@mysql4 /]# /Data/apps/mysql-5.5.12/scripts/mysql_install_db –user=mysql –basedir=/Data/apps/mysql-5.5.12/ –datadir=/Data/apps/mysql-5.5.12/data/
Installing MySQL system tables…
OK
Filling help tables…
OK
To start mysqld at boot time you have to copy
启动管理节点:
[root@mysql1 mysql-5.5.12]# /Data/apps/mysql-5.5.12/bin/ndb_mgmd -f /Data/apps/mysql-5.5.12/cluster-conf/ndb-config-2-node.ini
MySQL Cluster Management Server mysql-5.5.29 ndb-7.2.10
2013-02-26 10:36:57 [MgmtSrvr] INFO — The default config directory ‘/Data/apps/mysql-5.5.12/mysql-cluster’ does not exist. Trying to create it…
2013-02-26 10:36:57 [MgmtSrvr] INFO — Sucessfully created config directory
2013-02-26 10:36:57 [MgmtSrvr] WARNING — at line 27: [MGM] Id is deprecated, use NodeId instead
2013-02-26 10:36:57 [MgmtSrvr] WARNING — at line 32: [DB] Id is deprecated, use NodeId instead
2013-02-26 10:36:57 [MgmtSrvr] WARNING — at line 37: [DB] Id is deprecated, use NodeId instead
2013-02-26 10:36:57 [MgmtSrvr] WARNING — at line 41: [API] Id is deprecated, use NodeId instead
2013-02-26 10:36:57 [MgmtSrvr] WARNING — at line 45: [API] Id is deprecated, use NodeId instead
2013-02-26 10:36:57 [MgmtSrvr] WARNING — at line 48: [API] Id is deprecated, use NodeId instead
2013-02-26 10:36:57 [MgmtSrvr] WARNING — at line 51: [API] Id is deprecated, use NodeId instead
2013-02-26 10:36:57 [MgmtSrvr] WARNING — at line 57: [tcp] PortNumber is deprecated
2013-02-26 10:36:57 [MgmtSrvr] WARNING — at line 27: [MGM] Id is deprecated, use NodeId instead
2013-02-26 10:36:57 [MgmtSrvr] WARNING — at line 32: [DB] Id is deprecated, use NodeId instead
2013-02-26 10:36:57 [MgmtSrvr] WARNING — at line 37: [DB] Id is deprecated, use NodeId instead
2013-02-26 10:36:57 [MgmtSrvr] WARNING — at line 41: [API] Id is deprecated, use NodeId instead
2013-02-26 10:36:57 [MgmtSrvr] WARNING — at line 45: [API] Id is deprecated, use NodeId instead
2013-02-26 10:36:57 [MgmtSrvr] WARNING — at line 48: [API] Id is deprecated, use NodeId instead
2013-02-26 10:36:57 [MgmtSrvr] WARNING — at line 51: [API] Id is deprecated, use NodeId instead
2013-02-26 10:36:57 [MgmtSrvr] WARNING — at line 57: [tcp] PortNumber is deprecated
在次启动就行了:
都显示not connected
[root@mysql1 mysql-cluster]# /Data/apps/mysql-5.5.12/bin/ndb_mgmd -f /Data/apps/mysql-5.5.12/cluster-conf/ndb-config-2-node.ini
MySQL Cluster Management Server mysql-5.5.29 ndb-7.2.10
[root@mysql1 mysql-cluster]# /Data/apps/mysql-5.5.12/bin/ndb_mgm
– NDB Cluster — Management Client —
ndb_mgm> show
Connected to Management Server at: localhost:1186
Cluster Configuration
———————
[ndbd(NDB)] 2 node(s)
id=2 (not connected, accepting connect from 172.1.2.9)
id=3 (not connected, accepting connect from 172.1.2.8)
[ndb_mgmd(MGM)] 1 node(s)
id=1 @172.1.2.10 (mysql-5.5.29 ndb-7.2.10)
[mysqld(API)] 4 node(s)
id=4 (not connected, accepting connect from 172.1.2.7)
id=5 (not connected, accepting connect from any host)
id=6 (not connected, accepting connect from any host)
id=7 (not connected, accepting connect from any host)
ndb_mgm>
启动数据节点:
NDB数据节点1: 172.1.2.9 节点ID: id=2 Data Node
NDB数据节点2: 172.1.2.8 节点ID: id=3 Data Node
[root@mysql2 ndbdata]# /Data/apps/mysql-5.5.12/bin/ndbd
2013-02-26 10:43:41 [ndbd] INFO — Angel connected to ’172.1.2.10:1186′
2013-02-26 10:43:41 [ndbd] INFO — Angel allocate