Description:
Hello, I'm developing Simple Groupware. Just tested it with a MySQL 5.1 Cluster:
An error message comes up when creating this table:
(when doing it with MyISAM it is ok, NDB fails, without UTF8 it is also ok)
CREATE TABLE simple_offices(
id decimal( 15, 0 ) NOT NULL default '0',
officename varchar( 255 ) default NULL ,
manager varchar( 255 ) default NULL ,
ceo varchar( 255 ) default NULL ,
cio varchar( 255 ) default NULL ,
street varchar( 255 ) default NULL ,
zipcode varchar( 255 ) default NULL ,
city varchar( 255 ) default NULL ,
state varchar( 255 ) default NULL ,
country varchar( 255 ) default NULL ,
description text,
bgcolor varchar( 255 ) default NULL ,
notification text,
created decimal( 10, 0 ) default NULL ,
createdby varchar( 255 ) default NULL ,
lastmodified decimal( 10, 0 ) default NULL ,
lastmodifiedby varchar( 255 ) default NULL ,
dsize decimal( 10, 0 ) default '0',
history text,
folder decimal( 15, 0 ) default NULL ,
PRIMARY KEY ( id ) ,
KEY ind_offices_folder( folder )
) ENGINE = NDBCLUSTER DEFAULT CHARSET = utf8;
MySQL said: Documentation
#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
How to repeat:
CREATE TABLE simple_offices(
id decimal( 15, 0 ) NOT NULL default '0',
officename varchar( 255 ) default NULL ,
manager varchar( 255 ) default NULL ,
ceo varchar( 255 ) default NULL ,
cio varchar( 255 ) default NULL ,
street varchar( 255 ) default NULL ,
zipcode varchar( 255 ) default NULL ,
city varchar( 255 ) default NULL ,
state varchar( 255 ) default NULL ,
country varchar( 255 ) default NULL ,
description text,
bgcolor varchar( 255 ) default NULL ,
notification text,
created decimal( 10, 0 ) default NULL ,
createdby varchar( 255 ) default NULL ,
lastmodified decimal( 10, 0 ) default NULL ,
lastmodifiedby varchar( 255 ) default NULL ,
dsize decimal( 10, 0 ) default '0',
history text,
folder decimal( 15, 0 ) default NULL ,
PRIMARY KEY ( id ) ,
KEY ind_offices_folder( folder )
) ENGINE = NDBCLUSTER DEFAULT CHARSET = utf8;
Suggested fix:
Increase to 32K like suggested in:
http://forums.mysql.com/read.php?25,46886,47102