mysql-data 文件夹中的巨大 #sql-xxxx-xxxx.ibd 文件

问题描述

mysql 版本 5.7.28

当我尝试运行优化表时,我的数据库崩溃了。它将这个 100G 文件 #sql-ib3480-1658766754 留在了 mysql 数据目录中。当我运行 show tables 时,该表不显示。我已经尝试了此处提出的解决方案 (https://serverfault.com/questions/364391/huge-sql-xxxx-xxxx-ibd-files-in-mysql-data-folder)。掉落表

drop table `#mysql50##sql-ib3480-1658766754`

我收到一条消息“ERROR 1051 (42S02): Unknown table 'historic_moogdb.#mysql50##sql-ib3480-1658766754'”

我使用 percona 备份实用程序来备份我的数据库。甚至备份那个文件。

任何其他摆脱此文件的想法。

解决方法

进入文件系统并删除文件。

OPTIMIZE TABLE 几乎不需要 InnoDB 表。

如果您从表中进行了大量删除,让我们讨论完成该任务的更好方法http://mysql.rjweb.org/doc.php/deletebig

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...