0

MySQL 数据库怎样压缩表里面的数据减少占用空间?

amanda created at6 years ago view count: 2427

有没有最佳实践,想再程序里面压缩好再保存

report
回复
0

不要在程序里面压缩不划算,而且这样MySQL里面很多的功能都不能使用。

6 years ago 回复
1

MySQL 自带,执行下面即可

SET GLOBAL innodb_file_per_table=1;
SET GLOBAL innodb_file_format=Barracuda;
alter table table_name row_format=compressed;
6 years ago 回复