摘要: MySQL InnoDB表压缩 文件大小减小(可达50%以上) ==》 查询速度变快(count * 约减少20%以上时间) 如何设置mysql innodb 表的压缩: 第一,mysql的版本需要大于5.5第二,设置innodb_file_format=barracuda第三,create tab 阅读全文
posted @ 2019-04-08 16:12 天真無邪 阅读(668) 评论(0) 推荐(0) 编辑
摘要: 1.查看所有数据库容量大小 1 2 3 4 5 6 7 8 select table_schema as '数据库', sum(table_rows) as '记录数', sum(truncate(data_length/1024/1024, 2)) as '数据容量(MB)', sum(trunc 阅读全文
posted @ 2019-04-08 14:28 天真無邪 阅读(2924) 评论(0) 推荐(1) 编辑