参考:MySQL 案例:Delete 删数据后磁盘空间未释放 - 腾讯云开发者社区-腾讯云 (tencent.com)
1. 查看有多少为回收的空间
select * from information_schema.tables where TABLE_NAME ='ai_t_placedetect_data' \G;
2. 如果是 InnoDB 的表,执行 alter table ${table_name} engine = innodb
用一个例子来演示会更加清晰
wx5af80516d3233 博主文章分类:mysql ©著作权
文章标签 腾讯云 MySQL 开发者社区 文章分类 JavaScript 前端开发
参考:MySQL 案例:Delete 删数据后磁盘空间未释放 - 腾讯云开发者社区-腾讯云 (tencent.com)
1. 查看有多少为回收的空间
select * from information_schema.tables where TABLE_NAME ='ai_t_placedetect_data' \G;
2. 如果是 InnoDB 的表,执行 alter table ${table_name} engine = innodb
用一个例子来演示会更加清晰
Linux 磁盘管理命令 quota:显示磁盘已使用的空间与限制quotacheck:检查磁盘的使用空间与限制quotaoff:关闭磁盘空间限制 quotaon: 开启磁盘空间限制quotastats:显示磁盘空间限制repquota:检查磁盘空间限制的状态
这意味着即使删除了数据行,其他事务在操作该表时仍然可以看到旧版本的数据,直到这些事务也被提交或回滚。具体来说,M
被标记的数据所占的空间被标记为可复用,但磁盘空间不会立即回收,除非有后续的插入操作来重用这些空间,或者你采取额
docker删除镜像和容器后,磁盘空间未释放
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M