The following error occurred while executing/ETC/INIT.D/NDBD--initial
[Email protected] ~]#/ETC/INIT.D/NDBD--initial
Unable to connect with connect string:nodeid=0,localhost:1186
Retrying every 5 seconds. Attempts Left:12 9 8 7 6 5 4 3 2 1, failed.
Solutions
1. View the/etc/my.cnf file configuration
[Email protected] ~]# CAT/ETC/MY.CNF
[Mysqld]
Datadir=/var/lib/mysql
Socket=/var/lib/mysql/mysql.sock
User=mysql
# Disabling Symbolic-links is recommended to prevent assorted security risks
symbolic-links=0n
[Mysqld_safe]
Log-error=/var/log/mysqld.log
Pid-file=/var/run/mysqld/mysqld.pid
2. Modify the configuration file
[Email protected] ~]# VIM/ETC/MY.CNF
[Mysqld]
Datadir=/var/lib/mysql
Socket=/var/lib/mysql/mysql.sock
User=mysql
# Disabling Symbolic-links is recommended to prevent assorted security risks
Symbolic-links=0
Ndbcluster
ndb-connectstring=192.168.0.30
[Mysql_cluster]
ndb-connectstring=192.168.0.30
[Mysqld_safe]
Log-error=/var/log/mysqld.log
Pid-file=/var/run/mysqld/mysqld.pid
3. Re-initialize
[Email protected] ~]#/ETC/INIT.D/NDBD--initial
2014-05-09 21:45:17 [NDBD] INFO--Angel connected to ' 192.168.0.30:1186 '
2014-05-09 21:45:17 [NDBD] INFO--Angel allocated Nodeid:2
Problem solving
This article is from the "Cloud Life" blog, make sure to keep this source http://ovcer.blog.51cto.com/1145188/1409047