免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
123下一页
最近访问板块 发新帖
查看: 4928 | 回复: 20
打印 上一主题 下一主题

MYSQL的SQL节点错误[已解决] [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-11-14 17:41 |只看该作者 |倒序浏览
启动没有错误,进入后SHOW TABLES;
SHOW WARNINGS:
Error | 1296 | Got error 4009 'Cluster Failure' from NDB

用的是TAR。GZ包。

SQL节点一直是这样。连接不上管理节点。给指点一下

已经解决。晚上下班后我会写在我的博客里面。欢迎大家访问我的BLOG。

[ 本帖最后由 yueliangdao0608 于 2007-11-19 09:43 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2007-11-14 19:40 |只看该作者
发现是我用的MYSQL版本问题.X86_64的好像现在还有BUG。如果我在SQL节点的配置文件里把NDBCLUSTER去掉就没有任何错误了。

论坛徽章:
0
3 [报告]
发表于 2007-11-15 19:12 |只看该作者
晕那。今天把系统换成32位的了,还是出现这个错误:
Got error 4009 'Cluster Failure' from NDB

论坛徽章:
0
4 [报告]
发表于 2007-11-15 19:55 |只看该作者
我的5台机器都是1G的内存。是不是内存有点不够,还是怎么回事。配置都已经没啥大变化了。和网上以及官方的一样。

论坛徽章:
0
5 [报告]
发表于 2007-11-16 11:20 |只看该作者
原帖由 yueliangdao0608 于 2007-11-15 19:12 发表
晕那。今天把系统换成32位的了,还是出现这个错误:
Got error 4009 'Cluster Failure' from NDB



没人给个提示哈!!

论坛徽章:
0
6 [报告]
发表于 2007-11-16 11:51 |只看该作者
你这样谁会回答你呢?
mysql版本没有,配置信息也没有,错误也不全


ps:mysql cluster邮件列表里面相对很活跃,很多人乐意为你解答难题

论坛徽章:
0
7 [报告]
发表于 2007-11-16 12:32 |只看该作者
着是我的显示:
ndb_mgm> show
Cluster Configuration
---------------------
[ndbd(NDB)]     2 node(s)
id=2    @192.168.0.30  (Version: 5.1.22, Nodegroup: 0)
id=3    @192.168.0.8  (Version: 5.1.22, Nodegroup: 0, Master)

[ndb_mgmd(MGM)] 1 node(s)
id=1    @192.168.0.1  (Version: 5.1.22)

[mysqld(API)]   2 node(s)
id=4    @192.168.0.8  (Version: 5.1.22)
id=5    @192.168.0.30  (Version: 5.1.22)

论坛徽章:
0
8 [报告]
发表于 2007-11-16 12:35 |只看该作者
你把你的配置贴出来,,我看看..


我现在也遇到问题了,,就是在破坏测试的时候断掉一个,在连起来还是要要从新启动节点.不能自动连接...不知道他与MGM是怎样的一个连接机制!!

论坛徽章:
0
9 [报告]
发表于 2007-11-16 13:14 |只看该作者
好的。你等一下下。

管理节点:


[root@localhost ~]# cd /usr/local/mysql/
[root@localhost mysql]# ls
config.ini  data  ndb_mgm  ndb_mgmd
[root@localhost mysql]# cat config.ini
[NDBD DEFAULT]
NoOfReplicas=1
[TCP DEFAULT]
portnumber=3306
[NDB_MGMD]
hostname=192.168.0.231
datadir=/usr/local/mysql/data
[NDBD]
hostname=192.168.0.233
datadir=/usr/local/mysql/data
[NDBD]
hostname=192.168.0.234
datadir=/usr/local/mysql/data
[MYSQLD]
hostname=192.168.0.232
[root@localhost mysql]#


[root@localhost mysql]# /usr/local/mysql/ndb_mgm
-- NDB Cluster -- Management Client --
ndb_mgm> show
Connected to Management Server at: localhost:1186
Cluster Configuration
---------------------
[ndbd(NDB)]     2 node(s)
id=2    @192.168.0.233  (Version: 5.0.24, starting, Nodegroup: 0)
id=3    @192.168.0.234  (Version: 5.0.24, starting, Nodegroup: 0)

[ndb_mgmd(MGM)] 1 node(s)
id=1   (Version: 5.0.24)

[mysqld(API)]   1 node(s)
id=4 (not connected, accepting connect from 192.168.0.232)


ndb_mgm>

SQL 节点:
[root@localhost ~]# cat /etc/my.cnf
[mysqld]
basedir=/usr/local/mysql/
datadir=/usr/local/mysql/data/
user=nobody
port=3306
socket=/tmp/mysql.sock

ndbcluster
ndb-connectstring=192.168.0.231
[mysql_cluster]
ndb-connectstring=192.168.0.231
[root@localhost ~]# ps aux | grep mysql
root      2865  0.0  0.1   5312  1104 tty1     S    19:13   0:00 /bin/sh /usr/local/mysql/bin/mysqld_safe
nobody    2910  0.0  1.8 122356 18384 tty1     Sl   19:13   0:00 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql/ --datadir=/usr/local/mysql/data/ --user=nobody --pid-file=/usr/local/mysql/data//localhost.localdomain.pid --skip-locking --port=3306 --socket=/tmp/mysql.sock
root      3167  0.0  0.0   4752   664 pts/0    S+   21:20   0:00 grep mysql

DATA 节点:(两个配置一样的。另外一个是192.168.234)

[root@localhost ~]# cat /etc/my.cnf
[mysqld]
ndbcluster
ndb-connectstring=192.168.0.231
[mysql_cluster]
ndb-connectstring=192.168.0.231
[root@localhost ~]# ps aux | grep ndb
root      2953  0.0  0.2   6672  1956 ?        Ss   11:09   0:00 /usr/local/mysql/bin/ndbd --initial
root      2954  0.0 10.0 491720 97412 ?        Sl   11:09   0:00 /usr/local/mysql/bin/ndbd --initial
root      3229  0.0  0.0   4752   664 pts/0    S+   13:19   0:00 grep ndb
[root@localhost ~]#

[ 本帖最后由 yueliangdao0608 于 2007-11-16 13:21 编辑 ]

论坛徽章:
0
10 [报告]
发表于 2007-11-16 13:24 |只看该作者
本来SQL节点有两个。可两个错误都是一样的。我就去掉了一个。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP