最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【已解决】wordpress网站修复失败:wp_options Table is marked as crashed and last repair failed

WordPress crifan 3292浏览 0评论

折腾:

【已解决】wordpress网站crifan.com访问出错:建立数据库连接时出错

期间,

搜:

wp_options Table is marked as crashed and last repair failed

Fix “WordPress database error Table … is marked as crashed and should be repaired” :: Chris Jean

解决 MySQL 的 Table is marked as crashed and should be repaired 问题 | vpsee.com

然后去ssh连接服务器,去操作试试

MariaDB [linode_wordpress_db]> show databases;                   
+———————+
| Database            |
+———————+
| information_schema  |
| crifan_wiki         |
| linode_wordpress_db |
| mail                |
| mysql               |
| performance_schema  |
+———————+
6 rows in set (0.00 sec)
use linode_wordpress_db;
MariaDB [linode_wordpress_db]> select * from wp_options limit 1;
+———–+————-+———————–+———-+
| option_id | option_name | option_value          | autoload |
+———–+————-+———————–+———-+
|         3 | siteurl     | https://www.crifan.com | yes      |
+———–+————-+———————–+———-+
1 row in set (0.00 sec)
MariaDB [linode_wordpress_db]> repair table wp_options;
+——————————–+——–+———-+——————+
| Table                          | Op     | Msg_type | Msg_text         |
+——————————–+——–+———-+——————+
| linode_wordpress_db.wp_options | repair | Warning  | Can’t open table |
| linode_wordpress_db.wp_options | repair | error    | Corrupt          |
+——————————–+——–+———-+——————+
2 rows in set (0.00 sec)
MariaDB [linode_wordpress_db]> repair table wp_options;         
+——————————–+——–+———-+———-+
| Table                          | Op     | Msg_type | Msg_text |
+——————————–+——–+———-+———-+
| linode_wordpress_db.wp_options | repair | status   | OK       |
+——————————–+——–+———-+———-+
1 row in set (0.01 sec)
MariaDB [linode_wordpress_db]> select * from wp_options limit 1;
+———–+————-+———————–+———-+
| option_id | option_name | option_value          | autoload |
+———–+————-+———————–+———-+
|         3 | siteurl     | https://www.crifan.com | yes      |
+———–+————-+———————–+———-+
1 row in set (0.00 sec)
MariaDB [linode_wordpress_db]> select * from wp_options limit 10;
+———–+——————–+—————————————————————+———-+
| option_id | option_name        | option_value                                                  | autoload |
+———–+——————–+—————————————————————+———-+
|         3 | siteurl            | https://www.crifan.com                                         | yes      |
|         4 | blogname           | 在路上                                                        | yes      |
|         5 | blogdescription    | on the way – 走别人没走过的路,让别人有路可走                 | yes      |
|         6 | users_can_register | 0                                                             | yes      |
|         7 | admin_email        | [email protected]                                           | yes      |
|         8 | start_of_week      | 1                                                             | yes      |
|         9 | use_balanceTags    |                                                               | yes      |
|        10 | use_smilies        | 1                                                             | yes      |
|        11 | require_name_email | 1                                                             | yes      |
|        12 | comments_notify    | 1                                                             | yes      |
+———–+——————–+—————————————————————+———-+
10 rows in set (0.00 sec)
MariaDB [linode_wordpress_db]>

貌似修复好了?

的确是,可以正常打开crifan.com了:

【总结】

此处,在wordpress网站修复期间,提示:

wp_options Table is marked as crashed and last repair failed

看起来是wp_options这个table表崩溃出错了。

所以去修复

先去登录mysql:

mysql -u root -p

输入密码后,登录到此处的MariaDB然后:

show databases;
use linode_wordpress_db;

然后此处有点诡异:

select * from wp_options;

竟然是可以正常输出的。

但是接着:

repair table wp_options;

却又是修复失败了。。。

不过自己幸运地的后来再去试了试:

repair table wp_options;

结果就又修复好了。

然后就可以通过:

select * from wp_options limit 1;
select * from wp_options limit 10;

输出看到正常的内容了。

转载请注明:在路上 » 【已解决】wordpress网站修复失败:wp_options Table is marked as crashed and last repair failed

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
85 queries in 0.166 seconds, using 22.11MB memory