我已经安装了 MySQL Cluster 必要的包,我现在正在使用自动安装程序正确配置节点。当我尝试启动 Cluster In Deploy Configuration
part 时,除 SQL 节点外,所有节点(1 个管理节点、4 个数据节点)都正确启动,并且出现以下错误。
Command `/usr/local/mysql/bin/mysqld --defaults-file=/home/debian/MySQL_Cluster/49/my.cnf', running on 192.168.120.107 exited with 1:
2016-04-03 16:32:49 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2016-04-03 16:32:49 0 [Note] /usr/local/mysql/bin/mysqld (mysqld 5.6.28-ndb-7.4.10-cluster-gpl) starting as process 11472 ..
您会看到所有节点都已启动。我使用它推荐的命令--explicit_defaults_for_timestamp
和如下选项。
/usr/local/mysql/bin/mysqld --defaults-file=/home/debian/MySQL_Cluster/49/my.cnf --explicit_defaults_for_timestamp
2016-04-03 16:42:06 0 [Note] /usr/local/mysql/bin/mysqld (mysqld 5.6.28-ndb-7.4.10-cluster-gpl) starting as process 11503 ...
您可以看到--explicit_defaults_for_timestamp
选项服务正确启动,但是当我使用管理节点查看状态时,我仍然看到集群有问题,请参见管理节点:
ndb_mgm> show
Connected to Management Server at: localhost:1186
Cluster Configuration
---------------------
[ndbd(NDB)] 4 node(s)
id=1 @192.168.120.111 (mysql-5.6.28 ndb-7.4.10, Nodegroup: 0, *)
id=2 @192.168.120.117 (mysql-5.6.28 ndb-7.4.10, Nodegroup: 0)
id=3 @192.168.120.118 (mysql-5.6.28 ndb-7.4.10, Nodegroup: 1)
id=4 @192.168.120.76 (mysql-5.6.28 ndb-7.4.10, Nodegroup: 1)
[ndb_mgmd(MGM)] 1 node(s)
id=50 @192.168.120.79 (mysql-5.6.28 ndb-7.4.10)
[mysqld(API)] 1 node(s)
id=49 (not connected, accepting connect from 192.168.120.107)
如您所见,SQL 节点仍未正确启动:
[mysqld(API)] 1 node(s)
id=49 (not connected, accepting connect from 192.168.120.107)
我不明白这个问题。