gpt4 book ai didi

mysql - 如何使用 MySQL (InnoDB) 从 "incorrect key file"中恢复?

转载 作者:可可西里 更新时间:2023-11-01 06:40:22 26 4
gpt4 key购买 nike

Incorrect key file for table 'widgets'; try to repair it 

这是 MySQL 在尝试将新索引应用于现有(非常大的)表时给我的错误消息。当然,当我按照错误消息的建议尝试修复它时:

mysql> repair table widgets;
+-------------------+--------+----------+---------------------------------------------------------+
| Table | Op | Msg_type | Msg_text |
+-------------------+--------+----------+---------------------------------------------------------+
| tedsdb.widgets | repair | note | The storage engine for the table doesn't support repair |
+-------------------+--------+----------+---------------------------------------------------------+
1 row in set (0.00 sec)

我最好的行动方案是什么(在修补之前进行明显的完整备份)?

更新: 我创建了一个具有相同模式的新表 (MyISAM),复制了所有记录(插入到选择中),更改了新表 (InnoDB) 上的引擎,重命名为损坏表并重命名新表,然后再次尝试并得到相同的错误。

最佳答案

看起来像个老问题,但我刚遇到这个问题。 MySQL 正在将一个临时表写入磁盘并且/tmp 分区已满。

关于mysql - 如何使用 MySQL (InnoDB) 从 "incorrect key file"中恢复?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1027108/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com