wordpress 数据库链接失败

今天访问网站,才发现直接提示数据库链接失败

查看mysql的

2019-01-21T03:23:15.998898Z 15638 [ERROR] /usr/sbin/mysqld: Table ‘./mybacc_wordpress/wp_options’ is marked as crashed and last (automatic?) repair failed
2019-01-21T03:23:15.999066Z 15638 [ERROR] /usr/sbin/mysqld: Table ‘./mybacc_wordpress/wp_options’ is marked as crashed and last (automatic?) repair failed
2019-01-21T03:23:22.791382Z 15639 [ERROR] /usr/sbin/mysqld: Table ‘./mybacc_wordpress/wp_options’ is marked as crashed and last (automatic?) repair failed
2019-01-21T03:23:22.791579Z 15639 [ERROR] /usr/sbin/mysqld: Table ‘./mybacc_wordpress/wp_options’ is marked as crashed and last (automatic?) repair failed
2019-01-21T03:23:22.791753Z 15639 [ERROR] /usr/sbin/mysqld: Table ‘./mybacc_wordpress/wp_options’ is marked as crashed and last (automatic?) repair failed

参考:https://stackoverflow.com/questions/8843776/mysql-table-is-marked-as-crashed-and-last-automatic-repair-failed

 

server上用mysql 连接server

repair table wp_options' <table_name>;

image

刷新网站,搞定。

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据