Mysql innodb 压缩没有给出正确的结果
Mysql innodb compression not giving proper results
我正在测试 innodb 压缩(8kb 页面大小)。当我在 information_schema.tables 中看到它显示较小的大小(大约 10gb)但在磁盘上它消耗了大约 70gb.. 当我对磁盘中的文件使用 strings 命令时,它显示数据就像它不是compressed.what 可能是问题所在?
获取 5.6.3(或更高版本)。
SET GLOBAL innodb_file_format=Barracuda;
SET GLOBAL innodb_file_per_table=ON;
ALTER TABLE tbl ROW_FORMAT=COMPRESSED;
SHOW TABLE STATUS LIKE 'tbl'\G
我正在测试 innodb 压缩(8kb 页面大小)。当我在 information_schema.tables 中看到它显示较小的大小(大约 10gb)但在磁盘上它消耗了大约 70gb.. 当我对磁盘中的文件使用 strings 命令时,它显示数据就像它不是compressed.what 可能是问题所在?
获取 5.6.3(或更高版本)。
SET GLOBAL innodb_file_format=Barracuda;
SET GLOBAL innodb_file_per_table=ON;
ALTER TABLE tbl ROW_FORMAT=COMPRESSED;
SHOW TABLE STATUS LIKE 'tbl'\G