我可以从 wordpress 数据库中删除现有的数据库表吗?
问题:
当我打开 website.com/wp-admin
时。
显示此错误消息
One or more database tables are unavailable. The database may need to be repaired.
当我打开我的网站时,会显示此错误消息。
Error establishing a database connection
我的用户名、密码和主机名是正确的。
问题: 如何删除现有表格并安装新的 wordpress。
注意 我无法访问托管服务器。我只有 wordpress 管理员权限。并拥有数据库用户名和密码。
如果我点击修复。
出现这些行。这是 11 个表,但是 wordpress 有 13 个表。
The wp_users table is okay.
The wp_usermeta table is okay.
The wp_posts table is okay.
The wp_comments table is okay.
The wp_links table is okay.
The wp_options table is okay.
The wp_postmeta table is okay.
The wp_terms table is okay.
The wp_term_taxonomy table is okay.
The wp_term_relationships table is okay.
The wp_commentmeta table is okay.
Repairs complete. Please remove the following line from wp-config.php to prevent this page from being used by unauthorized users.
define('WP_ALLOW_REPAIR', true);
最佳答案
是的,你可以通过使用这个插件来实现 SQL Executioner .
激活插件后,只需转到管理面板中的“工具”菜单,在那里你可以找到它,在那里运行你想要的查询!
关于php - 如何删除wordpress数据库中的现有表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20349920/