WP数据库修复

时间:2014-09-10 04:58:31

标签: php mysql wordpress mysqli phpmyadmin

我无法访问我的wp-admin(前端工作到目前为止)。

WP系统告诉我在WP_ALLOW_REPAIR中将wp-config.php添加为true。

我做了。

我按下修复数据库并收到以下消息:

wp_users: 1 client is using or hasn't closed the table properly
wp_usermeta: 9 clients are using or haven't closed the table properly
wp_posts: 21 clients are using or haven't closed the table properly
wp_comments: 33 clients are using or haven't closed the table properly
wp_options: Table is marked as crashed
wp_postmeta: 28 clients are using or haven't closed the table properly
wp_terms: 3 clients are using or haven't closed the table properly
wp_term_taxonomy: 18 clients are using or haven't closed the table properly
wp_term_relationships: 18 clients are using or haven't closed the table properly
wp_commentmeta: 26 clients are using or haven't closed the table properly

这是一个可以解决的问题吗,或者我应该......找到一些可以跑到的山丘:/

主要,商业网站。担心。是什么赋予了?请帮忙。

2 个答案:

答案 0 :(得分:2)

您发布的输出表明wp_options表存在问题。通常,这可以通过发出修复命令(在执行任何操作之前备份所有数据)来恢复。要发出命令,您可以使用phpMyAdmin或您喜欢的任何客户端:

REPAIR TABLE wp_options

有关此命令的更多信息:MySQL Reference Manual: REPAIR TABLE Syntax

如果这没有帮助,请尝试使用以下参数发出命令:

REPAIR TABLE wp_options EXTENDED

REPAIR TABLE wp_options USE_FRM

在MySQL手册中阅读有关USE_FRM的信息。

答案 1 :(得分:0)

尝试访问您的服务器phpmyadmin pannel,然后选择您的数据库,然后选择所有表格,在显示您的表格的主页面的下半部分,您将看到一个下拉菜单,打开它并选择“修复表格”选项

http://www.siteground.com/img/knox/tutorials/uploaded_images/images/phpmyadmin/31.jpg

希望它可以帮到你

相关问题