删除大量数据行后,即使是巨大的SQL转储

时间:2016-06-22 11:07:52

标签: mysql centos mysqldump

即使我从mysql(myisam)表中删除大量行,sql转储的大小也是相同的(30GB)

注意:此变量是innodb_file_per_table ON

mysql> delete from radacct where YEAR(acctstarttime)='2014';
Query OK, 1963534 rows affected (1 hour 30.58 sec)

1 个答案:

答案 0 :(得分:0)

问题是什么? 如果你曾经有过storin bakup的麻烦。

如果它的尺寸较小,可能会为你运输它,可能会有更多的部分吗?

第1部分

select *  from radacct where YEAR(acctstarttime)='2014' and id<100000000 order by id asc;

第2部分

select *  from radacct where YEAR(acctstarttime)='2014' and id<200000000 order by id asc;
等等......

在你完成压力之后

PS:我无法在你的评论中添加重播。所以我会在这里添加:

您可以查看此页面使用完整信息。 MySQL InnoDB not releasing disk space after deleting data rows from table