MYSQL集群SQL节点的错误归档

1、今天倒入数据的时候碰到一个错误。
Error occured at:2007-12-03 14:41:01
Line no.:154
E rror Code: 1118 - Row size too large. The maximum row size for the used table type, not counting BLOBs, is 8052. You have to change some columns to TEXT or BLOBs

查了我对应的表,原来有的字段类型为:varchar(512).看来MySQL5.1的集群对VARCHAR类型还不是很好的支持。只能支持到VARCHAR(255)。

2、 Cluster configuration warning line 46: Could not use next node id 5 for section [API], using next unused node id 7.

这个警告在于管理节点的配置里指定了具体的ID。
[mysqld]
id=5
[mysqld]
这个ID系统自己分配。
3、ERROR 1205 (HY000): Lock wait timeout exceeded; try restarting transaction
Temporary error: 266: Time-out in NDB, probably caused by deadlock
或者:

mysql> show warnings;
+-------+------+---------------------------------------------------------------------------------+
| Level | Code | Message                                                                         |
+-------+------+---------------------------------------------------------------------------------+
| Error | 1297 | Got temporary error 274 'Time-out in NDB, probably caused by deadlock' from NDB |
+-------+------+---------------------------------------------------------------------------------+
1 row in set (0.00 sec)

解决方法:

在管理节点的[ndbd default]
区加:
TransactionDeadLockDetectionTimeOut=10000(我这里设置了10秒)默认是1200(1.2秒)

按照顺序重新启动各个节点就不会出现问题了。


4、创建LOGFILE GROUP 失败
mysql> create logfile group lg_2
    -> add undofile 'undo_3.dat'
    -> initial_size 400M
    -> undo_buffer_size 50M
    -> engine ndb;
ERROR 1525 (HY000): Failed to create LOGFILE GROUP
mysql> show warnings;
+-------+------+---------------------------------------------------------------------------+
| Level | Code | Message                                                                   |
+-------+------+---------------------------------------------------------------------------+
| Error | 1296 | Got error 1514 'Currently there is a limit of one logfile group' from NDB |
| Error | 1525 | Failed to create LOGFILE GROUP                                            |
+-------+------+---------------------------------------------------------------------------+
2 rows in set (0.00 sec)

解决办法:
原来现在的MYSQL只支持创建一个LOGFILE GROUP文件。
只有删掉原来的才可以创建新的。

5、 当把表数据存放到磁盘上时出现表满现象。
The table '#sql-51c5_1f9' is full

mysql> create index f_id on t11(id);
ERROR 1114 (HY000): The table '#sql-51c5_1f9' is full
解决办法:
增加表空间:
mysql> alter tablespace ts_1
    -> add datafile 'data_3.dat'
    -> initial_size 10M
    -> engine ndb;
Query OK, 0 rows affected (0.78 sec)

mysql> create index f_id on t11(id);
Query OK, 9900 rows affected (23.31 sec)
Records: 9900  Duplicates: 0  Warnings: 0
6、下午突然网络断了。然后查看MYSQL。
[root@localhost ~]# service mysqld status ERROR! MySQL is not running, but lock exists
不过最后自己好了。原因还没有彻底弄明白。
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值