![WordPress database error Table './db/wp_options' is marked as crashed and should be repaired [✔️ SOLVED] 图片[1]-WordPress数据库错误崩溃wp_options应予以修复的解决办法-搬主题](https://cdn.banzhuti.com/2023/12/20231218212048994.jpg)
有时候我们在使用WordPress的时候会出现数据库错误,直接显示数据库表崩溃的提示,如下:WordPress database error Table ‘./db/wp_options’ is marked as crashed and should be repaired。怎么修复呢?搬主题分享4种不同的方法来修复这个看起来很吓人的错误,给出相应的解决办法。
注意:在执行以下建议之前,备份数据库至关重要。
选项 1. 修复崩溃的数据库表
步骤 1. 登录 PHPmyadmin或通过 cPanel 后台连接到 PHPmyadmin
![WordPress database error Table './db/wp_options' is marked as crashed and should be repaired [✔️ SOLVED] 图片[2]-WordPress数据库错误崩溃wp_options应予以修复的解决办法-搬主题](https://cdn.banzhuti.com/2023/12/20231218212401174.jpg)
步骤 2. 选择有崩溃表的数据库
![WordPress database error Table './db/wp_options' is marked as crashed and should be repaired [✔️ SOLVED] 图片[3]-WordPress数据库错误崩溃wp_options应予以修复的解决办法-搬主题](https://cdn.banzhuti.com/2023/12/20231218212407978.jpg)
第 3 步 在每个崩溃的表旁边打勾或全部选中
![WordPress database error Table './db/wp_options' is marked as crashed and should be repaired [✔️ SOLVED] 图片[4]-WordPress数据库错误崩溃wp_options应予以修复的解决办法-搬主题](https://cdn.banzhuti.com/2023/12/20231218212412370.jpg)
步骤 4. 从列表底部的 “With selected:(选择)”下拉菜单中选择 “Repair table(修复表)”。
![WordPress database error Table './db/wp_options' is marked as crashed and should be repaired [✔️ SOLVED] 图片[5]-WordPress数据库错误崩溃wp_options应予以修复的解决办法-搬主题](https://cdn.banzhuti.com/2023/12/20231218212417174.jpg)
让 PHPmyadmin开始工作。如果数据库表引擎是 MyISAM,则检查成功:
![WordPress database error Table './db/wp_options' is marked as crashed and should be repaired [✔️ SOLVED] 图片[6]-WordPress数据库错误崩溃wp_options应予以修复的解决办法-搬主题](https://cdn.banzhuti.com/2023/12/20231218212422546.jpg)
但如果引擎是 InnoDB,修复就会失败,并显示错误信息: 表的存储引擎不支持修复
![WordPress database error Table './db/wp_options' is marked as crashed and should be repaired [✔️ SOLVED] 图片[7]-WordPress数据库错误崩溃wp_options应予以修复的解决办法-搬主题](https://cdn.banzhuti.com/2023/12/20231218212455974.jpg)
如果 “修复”不起作用,表仍然崩溃,请尝试以下方法:
选项 2. 更改崩溃的数据库表引擎
步骤 1. 登录 PHPmyadmin或通过 cPanel 后台连接到 PHPmyadmin
![WordPress database error Table './db/wp_options' is marked as crashed and should be repaired [✔️ SOLVED] 图片[8]-WordPress数据库错误崩溃wp_options应予以修复的解决办法-搬主题](https://cdn.banzhuti.com/2023/12/20231218212500475.jpg)
步骤 2. 选择有崩溃表的数据库
![WordPress database error Table './db/wp_options' is marked as crashed and should be repaired [✔️ SOLVED] 图片[9]-WordPress数据库错误崩溃wp_options应予以修复的解决办法-搬主题](https://cdn.banzhuti.com/2023/12/20231218212505176.jpg)
步骤 3. 单击崩溃的表名
![WordPress database error Table './db/wp_options' is marked as crashed and should be repaired [✔️ SOLVED] 图片[10]-WordPress数据库错误崩溃wp_options应予以修复的解决办法-搬主题](https://cdn.banzhuti.com/2023/12/20231218212510700.jpg)
步骤 4. 点击Operations 选项卡
步骤 5. 在表选项下将存储引擎从 MyISAM 更改为 InnoDB,反之亦然。
![WordPress database error Table './db/wp_options' is marked as crashed and should be repaired [✔️ SOLVED] 图片[11]-WordPress数据库错误崩溃wp_options应予以修复的解决办法-搬主题](https://cdn.banzhuti.com/2023/12/20231218212515891.jpg)
步骤 6. 点击表选项下的 GO 按钮
![WordPress database error Table './db/wp_options' is marked as crashed and should be repaired [✔️ SOLVED] 图片[12]-WordPress数据库错误崩溃wp_options应予以修复的解决办法-搬主题](https://cdn.banzhuti.com/2023/12/20231218212520899.jpg)
选项 3. 重新导入崩溃的表
表中包含已崩溃的行,因此导出表内容将导出除已崩溃行之外的所有行。如果表中崩溃的行对 WordPress 本身的运行并不重要,例如暂存器、插件设置等。- 那么问题就会迎刃而解。
导出表内容
步骤 1. 登录 PHPmyadmin或通过 cPanel 后台连接到 PHPmyadmin
![WordPress database error Table './db/wp_options' is marked as crashed and should be repaired [✔️ SOLVED] 图片[13]-WordPress数据库错误崩溃wp_options应予以修复的解决办法-搬主题](https://cdn.banzhuti.com/2023/12/20231218212524151.jpg)
步骤 2. 选择有崩溃表的数据库
![WordPress database error Table './db/wp_options' is marked as crashed and should be repaired [✔️ SOLVED] 图片[14]-WordPress数据库错误崩溃wp_options应予以修复的解决办法-搬主题](https://cdn.banzhuti.com/2023/12/20231218212529331.jpg)
步骤 3. 单击崩溃的表名
![WordPress database error Table './db/wp_options' is marked as crashed and should be repaired [✔️ SOLVED] 图片[15]-WordPress数据库错误崩溃wp_options应予以修复的解决办法-搬主题](https://cdn.banzhuti.com/2023/12/20231218212534838.jpg)
步骤 4. 点击Export
步骤 5. 点击 “Go”按钮
截断表
成功导出表内容并保存为设备上的文件后,需要截断表(删除所有内容)并重新导入下载的文件。
步骤 6. 点击Operations 选项卡
第 7 步 向下滚动到底部,点击清空表(TRUNCATE)链接
![WordPress database error Table './db/wp_options' is marked as crashed and should be repaired [✔️ SOLVED] 图片[16]-WordPress数据库错误崩溃wp_options应予以修复的解决办法-搬主题](https://cdn.banzhuti.com/2023/12/20231218212540159.jpg)
步骤 8. 在弹出的确认窗口中点击 “确定
![WordPress database error Table './db/wp_options' is marked as crashed and should be repaired [✔️ SOLVED] 图片[17]-WordPress数据库错误崩溃wp_options应予以修复的解决办法-搬主题](https://cdn.banzhuti.com/2023/12/20231218212545183.jpg)
您将看到确认信息:
![WordPress database error Table './db/wp_options' is marked as crashed and should be repaired [✔️ SOLVED] 图片[18]-WordPress数据库错误崩溃wp_options应予以修复的解决办法-搬主题](https://cdn.banzhuti.com/2023/12/20231218212550996.jpg)
导入数据库表
现在,您需要将下载的文件导入数据库表。
步骤 9. 点击 Import
第 10 步 点击 “选择文件”,然后选择导出的文件并点击 “打开”。
![WordPress database error Table './db/wp_options' is marked as crashed and should be repaired [✔️ SOLVED] 图片[19]-WordPress数据库错误崩溃wp_options应予以修复的解决办法-搬主题](https://cdn.banzhuti.com/2023/12/20231218212554877.jpg)
步骤 5. 点击底部的 Go 按钮,等待导入完成。
![WordPress database error Table './db/wp_options' is marked as crashed and should be repaired [✔️ SOLVED] 图片[20]-WordPress数据库错误崩溃wp_options应予以修复的解决办法-搬主题](https://cdn.banzhuti.com/2023/12/20231218212600805.jpg)
选项 4. 恢复崩溃的表
备份非常重要,如果每天定期备份,就可以轻松地从备份中恢复崩溃的表。
还原过程因您使用的插件备份解决方案而异,比如如下的解决办法。
- PHPmyadmin
- Softaculous
- Updraft插件
以上就是搬主题分享的WordPress数据库错误崩溃wp_options应予以修复的解决办法。























暂无评论内容