1、今天倒入数据的时候碰到一个错误。
Error occured at:2007-12-03 14:41:01
Line no.:154
Error 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
不过最后自己好了。原因还没有彻底弄明白。
阅读(7910) | 评论(6) | 转发(0) |