Error configuring MySQL cluster Unable to connect with connect string:nodeid=0,localhost:1186 problem resolution

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.