I'm facing the following problem.
Row size too large (> 8126). Changing some columns to TEXT or BLOB or using ROW_FORMAT=DYNAMIC or ROW_FORMAT=COMPRESSED may help. In
current row format, BLOB prefix of 768 bytes is stored inline.
It appears just when I'm uploading a image to the database (it has <1Mb). Precisely, just 100kb.
I've tried a lot of things: to change the properties "max_allowed_packet", "innodb_log_file_size" (namely, to increase the size to 512M) and nothing...
I dont know the cause of the trouble.
To illustrate, the table
TABLE(
`passeio` int(4) unsigned NOT NULL COMMENT 'identitificador do passeio',
`data_inclusao` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`nome_passeio` varchar(200) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`inicio` date NOT NULL,
`fim` date NOT NULL,
`por_que_ir` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`pdf_roteiro` mediumblob NOT NULL,
`incluso` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`nao_incluso` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`valor_descricao` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`valor_vista` decimal(10,0) NOT NULL,
`valor_total_parcelado` decimal(10,0) NOT NULL,
`numero_parcelas` int(2) unsigned NOT NULL,
`forma_pagamento` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`avisos_importantes` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`foto_principal` blob NOT NULL,
`foto_2` blob NOT NULL,
`foto_3` blob NOT NULL,
`foto_4` blob NOT NULL,
`foto_5` blob NOT NULL,
`foto_6` blob NOT NULL,
`foto_7` blob NOT NULL,
`foto_8` blob NOT NULL,
`foto_9` blob NOT NULL,
`foto_10` blob NOT NULL,
`foto_11` blob NOT NULL,
`foto_12` blob NOT NULL,
`foto_13` blob NOT NULL,
`foto_14` blob NOT NULL,
`foto_15` blob NOT NULL,
`foto_16` blob NOT NULL,
`foto_17` blob NOT NULL,
`foto_18` blob NOT NULL,
`foto_19` blob NOT NULL,
`foto_20` mediumblob NOT NULL,
`valor_entrada` decimal(10,0) NOT NULL,
`data_partida` date NOT NULL,
`local_partida_1` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`hora_partida_1` time NOT NULL,
`local_partida_2` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`hora_partida_2` time NOT NULL,
`local_partida_3` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`hora_partida_3` time NOT NULL,
`local_partida_4` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`hora_partida_4` time NOT NULL,
`local_partida_5` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`hora_partida_5` time NOT NULL,
`local_partida_6` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`hora_partida_6` time NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=77 DEFAULT CHARSET=latin1 ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=8;