配置Mysql Cluster时出错Unable to connect with connect string: nodeid=0,localhost:1186问题的解决
2014-05-09 21:54
691 查看
在执行 /etc/init.d/ndbd --initial出现下列错误
[root@ndbd1 ~]# /etc/init.d/ndbd --initial
Unable to connect with connect string: nodeid=0,localhost:1186
Retrying every 5 seconds. Attempts left: 12 11 10 9 8 7 6 5 4 3 2 1, failed.
解决办法
1.查看/etc/my.cnf文件配置
[root@ndbd1 ~]# 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.修改该配置文件
[root@ndbd1 ~]# 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.重新进行初始化
[root@ndbd1 ~]# /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
问题解决
本文出自 “云人生” 博客,请务必保留此出处http://ovcer.blog.51cto.com/1145188/1409047
[root@ndbd1 ~]# /etc/init.d/ndbd --initial
Unable to connect with connect string: nodeid=0,localhost:1186
Retrying every 5 seconds. Attempts left: 12 11 10 9 8 7 6 5 4 3 2 1, failed.
解决办法
1.查看/etc/my.cnf文件配置
[root@ndbd1 ~]# 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.修改该配置文件
[root@ndbd1 ~]# 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.重新进行初始化
[root@ndbd1 ~]# /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
问题解决
本文出自 “云人生” 博客,请务必保留此出处http://ovcer.blog.51cto.com/1145188/1409047
相关文章推荐
- 配置Mysql Cluster时出错Unable to connect with connect string: nodeid=0,localhost:1186问题的解决
- 配置Mysql Cluster时出错Unable to connect with connect string: nodeid=0,localhost:1186问题的解决
- 在ubuntu中配置SSH(解决connect to host localhost port 22: Connection refused问题)
- 在Ubuntu中配置SSH(解决connect to host localhost port 22: Connection refused问题)
- Ubuntu 安装配置SSH(ssh: connect to host localhost port 22: Connection refused问题的解决)
- 在ubuntu中配置SSH(解决connect to host localhost port 22: Connection refused问题)
- Ubuntu 安装配置SSH(ssh: connect to host localhost port 22: Connection refused问题的解决)
- 解决unable to find string literal operator 'operator""fmt' with 'const char [15]', 编译问题
- 在ubuntu中配置SSH(解决connect to host localhost port 22: Connection refused问题)
- Unable to find a team with the given Team ID或者Failed to code sign的问题解决
- 在ubuntu中配置SSH(解决connect to host localhost port 22: Connection refused问题)
- Unable to find a team with the given Team ID 问题解决方法
- mysql can't connect to MySQL server on 'localhost'(10061)问题解决
- 出现ssh connect to host localhost port 22 Connection refused问题的解决方法
- 解决fatal: unable to connect to github.com问题
- 为subclipse配置http代理,解决“RA layer request failed, Unable to connect to a repository at URL ..." 错误
- Can't connect to MySQL server on 'localhost' (10048)问题解决方法
- SVN Unable to connect to a repository at URL问题解决
- 安装mysql绿色版及解决Can't connect to MySQL server on 'localhost' (10061)问题
- 解决DGMGRL Unable to connect to database ORA-12541: TNS:no listener问题