gpt4 book ai didi

mysql不正确的 key 文件

转载 作者:行者123 更新时间:2023-11-29 00:54:35 25 4
gpt4 key购买 nike

我在 mysql 中遇到这个错误。我尝试修复了很多次,但仍然存在。我还修好了所有的 table 。

morein_db/categories.MYI'; try to repair it
110716 9:58:16 [ERROR] /usr/libexec/mysqld: Incorrect key file for table './morein_db/categories.MYI'; try to repair it
110716 9:58:16 [ERROR] /usr/libexec/mysqld: Incorrect key file for table './morein_db/categories.MYI'; try to repair it
110716 9:58:16 [ERROR] /usr/libexec/mysqld: Incorrect key file for table './morein_db/products_stock.MYI'; try to repair it
110716 9:58:16 [ERROR] /usr/libexec/mysqld: Incorrect key file for table './morein_db/products_stock.MYI'; try to repair it

110716 10:01:03 [ERROR] Got an error from thread_id=3586, /builddir/build/BUILD/mysql-5.5.10/storage/myisam/mi_write.c:222

最佳答案

关闭 MySQL 服务器,在 MySQL datadir 中将目录更改为 morein_db 并执行 myisamchk 实用程序

myisamchk --silent --force --fast --update-state --key_buffer_size=64M --sort_buffer_size=64M --read_buffer_size=1M --write_buffer_size=1M *.MYI

这假设您有超过 64M 的可用 RAM。如果增加这些缓冲区,修复会更快。您可以在此处查看(非常方便的)myisamchk 实用程序的详细信息: http://dev.mysql.com/doc/refman/5.6/en/myisamchk.html

关于mysql不正确的 key 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6715329/

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