- 论坛徽章:
- 0
|
10可用积分
Mysql version 5.0.67
1.mysql -uroot -ppassword database < modifiedschema.sql
ERROR 1118 (42000) at line 398: 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
不使用engine=ndb是OK的!
打Size改小也是可以OK!但我要知道,倒底是多少?还有就是我现在用了多少?
2.
CREATE TABLE aabbcc(
FreeMinPrefixGroupId INT AUTO_INCREMENT,
FreeMinPlanId INT,
FreeMins INT DEFAULT 0 NOT NULL,
FreeMinType INT DEFAULT 0 NOT NULL,
UsageAmount DECIMAL(19, ,
PRIMARY KEY (FreeMinPrefixGroupId)
)engine=ndb DEFAULT CHARSET=utf8
;
建这样的表,会出现以下问题:
ERROR 1005 (HY000) at line 1192: Can't create table './ngi/aabbcc.frm' (errno: 70
aabbcc
.......而其它的没有问题.
不使用engine=ndb也OK! |
最佳答案
查看完整内容
mysql的bin目录下有一个perror命令 perror --ndb error_code 就可以看到是哪里出的问题了,我以前cluster导入数据时也经常出错,都是查的这个
|