mysql是否自动压缩数据库? [英] Is mysql automatically compressing the database?

查看:264
本文介绍了mysql是否自动压缩数据库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的表条目很长,大约10000个字符,所以我想知道是否需要在插入mysql之前自己压缩它,例如使用gzip库?

My table entry was pretty long , around 10000 characters , so i'm wondering if i need to compress that myself , e.g use gzip library , before inserting to mysql ?

当前我正在使用MyISAM数据库格式.

Current i'm using MyISAM database format.

谢谢!

推荐答案

可以在CREATE TABLEALTER TABLE语句中使用属性ROW_FORMAT=COMPRESSED, KEY_BLOCK_SIZE或同时使用属性ROW_FORMAT=COMPRESSED, KEY_BLOCK_SIZE来启用表压缩.根据选项值的组合,InnoDB尝试压缩每个页面

you can use the attributes ROW_FORMAT=COMPRESSED, KEY_BLOCK_SIZE, or both in the CREATE TABLE and ALTER TABLE statements to enable table compression. Depending on the combination of option values, InnoDB attempts to compress each page

有关更多详细信息,请通过以下链接:

For more details go through below link:

为表启用压缩

这篇关于mysql是否自动压缩数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆