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>;

刷新网站,搞定。
本作品采用 知识共享署名-相同方式共享 4.0 国际许可协议 进行许可。