建好了mysql cluster,管理节点、datanode节点和mysql都启动了,但是管理节点不识别mysql
ndb_mgm> show
Cluster Configuration
---------------------
[ndbd(NDB)] 2 node(s)
id=2 (not connected, accepting connect from 192.168.100.212)
id=3 (not connected, accepting connect from 192.168.100.213)
[ndb_mgmd(MGM)] 1 node(s)
id=1 @192.168.100.214 (mysql-5.6.17 ndb-7.3.5)
[mysqld(API)] 2 node(s)
id=4 (not connected, accepting connect from 192.168.100.212)
id=5 (not connected, accepting connect from 192.168.100.212)
尝试停止mysql服务,却停不掉
#service mysql stop
Shutting down MySQL....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
mysql日志为:
2014-11-03 11:19:30 7862 [Note] Giving 1 client threads a chance to die gracefully
2014-11-03 11:19:30 7862 [Note] Event Scheduler: Purging the queue. 0 events
2014-11-03 11:19:30 7862 [Note] Shutting down slave threads
2014-11-03 11:19:31 7862 [Note] NDB Binlog: Server shutdown detected while waiting for ndbcluster to start...
2014-11-03 11:19:31 7862 [Note] Stopping Cluster Binlog
2014-11-03 11:19:32 7862 [Note] Forcefully disconnecting 0 remaining clients
2014-11-03 11:19:32 7862 [Note] Binlog end
2014-11-03 11:19:32 7862 [Note] Stopping Cluster Utility thread
2014-11-03 11:19:32 7862 [Note] Stopping Cluster Index Stats thread
日志停在这里不动了。
mysql的my.cnf文件配置为:
#provide connectstring for management server host (default port: 1186)
[ndbd]
connect-string=192.168.100.214:1186
#provide connectstring for management server host (default port: 1186)
[ndb_mgm]
connect-string=192.168.100.214:1186
麻烦大侠们给看看怎么回事