Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/63.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
MySQL-Barracuda文件格式&;行压缩以避免错误1118行大小过大_Mysql_Innodb_Data Warehouse_Denormalization - Fatal编程技术网

MySQL-Barracuda文件格式&;行压缩以避免错误1118行大小过大

MySQL-Barracuda文件格式&;行压缩以避免错误1118行大小过大,mysql,innodb,data-warehouse,denormalization,Mysql,Innodb,Data Warehouse,Denormalization,我正在尝试使用mysql 5.5.31(community edition)进行行压缩,以避免在仓库类型上下文中进行非规范化时出现以下错误 ERROR 1118 (42000): Row size too large. The maximum row size for the used table type, not counting BLOBs, is 65535. You have to change some columns to TEXT or BLOBs 我已启用各种系统变量,如下所

我正在尝试使用mysql 5.5.31(community edition)进行行压缩,以避免在仓库类型上下文中进行非规范化时出现以下错误

ERROR 1118 (42000): Row size too large. The maximum row size for the used
table type, not counting BLOBs, is 65535. You have to change some columns
to TEXT or BLOBs
我已启用各种系统变量,如下所示:

mysql> show variables like 'innodb_file%';
+--------------------------+-----------+
| Variable_name            | Value     |
+--------------------------+-----------+
| innodb_file_format       | Barracuda |
| innodb_file_format_check | ON        |
| innodb_file_format_max   | Barracuda |
| innodb_file_per_table    | ON        |
+--------------------------+-----------+
但是,当我尝试执行以下测试时,仍然会得到相同的行大小太大的错误

create table foo (  first varchar(10000),
    second varchar(10000),
    third varchar(10000),
    fourth varchar(10000),
    fifth varchar(10000),
    sixth varchar(10000),
    seventh varchar(10000)
 ) ENGINE=InnoDB ROW_FORMAT=Compressed KEY_BLOCK_SIZE=8;
有人知道我在这里遗漏了什么吗?有几个来源表明这应该有效

-这表明即使在梭鱼下,组合行长度仍然有限制

尝试将
varhcar(x)
更改为
text
blob
相反,它在我的测试中运行良好:

create table foo_text (  
    first longtext,
    second longtext,
    third longtext,
    fourth longtext,
    fifth longtext,
    sixth longtext,
    seventh longtext
) ENGINE=InnoDB ROW_FORMAT=Compressed KEY_BLOCK_SIZE=8;