
wordpress批量导入
您想删除 WordPress 网站上的所有评论吗?
您想删除 WordPress 网站上的所有评论吗?
这种情况很少见,但在某些情况下,网站所有者可能会决定删除其 WordPress 网站上的所有评论。如果您有很多评论,那么手动删除它们可能需要一些时间。
这种情况很少见,但在某些情况下,网站所有者可能会决定从其 WordPress 网站中删除所有评论。如果您有很多评论,手动删除它们可能需要一些时间。
在本文中,我们将向您展示如何轻松批量删除所有 WordPress 评论。
在本文中,我们将向您展示如何轻松批量删除所有 WordPress 评论。

删除所有WordPress注释之前 (Before you Delete All WordPress Comments)
在许多合法的情况下,用户确实需要毫不犹豫地删除所有 WordPress 评论。
在许多合法情况下,用户确实需要毫不犹豫地删除所有 WordPress 评论。
For example, you filled WordPress with dummy comments on a development site just to see how they would look. You would want to delete those comments before 移动到实时站点.
例如,您在开发站点上用虚假注释填充了WordPress,以查看它们的外观。 您可能希望先删除这些评论,然后然后转移到现场 。
还有许多其他情况,网站所有者希望删除其 WordPress 网站的评论。
在许多其他情况下,网站所有者希望删除 WordPress 网站中的评论。
However, if you just want to delete the spam comments, then take a look at our guide on how to 批量删除WordPress中的垃圾评论. If you are upset about comment spam on your WordPress, then make sure you check these 在 WordPress 中打击垃圾评论的技巧和工具.
但是,如果您只想删除垃圾邮件评论,请查看我们的指南,了解如何WordPress中批量删除垃圾评论 。 如果您对WordPress上的评论垃圾邮件感到不满,请确保检查以下在 WordPress 中打击垃圾评论的技巧和工具 。
If there are comments showing up on your pages, then take a look at how to 禁用 WordPress 页面上的评论.
如果页面上显示注释,请查看如何禁用 WordPress 页面上的评论 。
如果上述情况都不适用,请继续阅读。
如果以上都不适用,请继续阅读。
First you need to create a complete WordPress 备份 of your site.
首先,您需要创建站点的完整WordPress 备份 。
删除 WordPress 中的所有评论是不可逆转的操作。一旦删除这些评论,您将无法撤消。这就是为什么拥有备份很重要。
删除 WordPress 中的所有评论是不可逆的操作。一旦删除这些评论,您将无法撤消。这就是为什么备份很重要。
方法1:使用插件删除所有WordPress注释 (Method 1: Deleting All WordPress Comments Using Plugin)
一次删除所有 WordPress 评论的最简单方法是使用插件。
一次删除所有 WordPress 评论的最简单方法是使用插件。
Note: This action is irreversible and you need to make a 完整的 WordPress 备份 before moving forward. This will allow you to restore comments if you change your mind.
注意:此操作是不可逆的,您需要进行完整的 WordPress 备份,然后再继续操作。 如果您改变主意,这将使您可以恢复评论。
The first thing you need to do is install and activate the 删除WordPress的所有评论 plugin. For more details, see our step by step guide on 如何安装 WordPress 插件.
您需要做的第一件事是安装并激活WordPress插件的删除所有评论 。 有关更多详细信息,请参阅有关如何安装 WordPress 插件步指南。
Upon activation, you need to visit 工具 » 删除评论 page. This is where you will see the total number of comments on your website and options to delete comments.
激活后,您需要访问工具 » 删除评论页面。 在这里,您将看到网站上的评论总数以及删除评论的选项。

您可以选择删除所有 WordPress 评论、待处理评论、垃圾评论或垃圾箱中已有的评论。
您可以选择删除所有 WordPress 评论、待处理评论、垃圾评论或已在垃圾箱中的评论。
如果您想删除所有 WordPress 评论,请选择“所有评论”选项,然后单击“立即删除”按钮。
如果您想删除所有 WordPress 评论,请选择“所有评论”选项,然后单击“立即删除”按钮。
该插件现在将永久删除 WordPress 网站上的所有评论。包括垃圾邮件和垃圾邮件中的内容。
现在,该插件将永久删除 WordPress 网站上的所有评论。包括垃圾邮件和垃圾邮件。
您现在可以访问评论页面,您将看到所有评论已从您的 WordPress 网站安全删除。
现在您可以访问评论页面,您将看到所有评论已从您的 WordPress 网站安全删除。
方法2:使用phpMyAdmin删除所有WordPress评论 (Method 2: Delete All WordPress Comments Using phpMyAdmin)
You can also quickly delete all WordPress comments using MySQL or php我的管理员. This method is only recommended for more advanced users.
您还可以使用MySQL或php我的管理员快速删除所有WordPress注释。 仅建议更高级的用户使用此方法。
Note: This action is irreversible too. You need to make a 完整的 WordPress 备份 or at least make a WordPress 数据库备份 before moving forward.
注意:此操作也是不可逆的。 在继续之前,您需要进行完整的 WordPress 备份或至少进行WordPress 数据库备份 。
Login to cPanel dashboard of your WordPress 托管 account. Under the database section, click on phpMyAdmin.
登录到WordPress 托管帐户的cPanel仪表板。 在数据库部分下,单击phpMyAdmin。

在 phpMyAdmin 中,您需要找到您的 WordPress 数据库。您将看到一个显示所有 WordPress 数据库表的页面。
在 phpMyAdmin 中,您需要找到 WordPress 数据库。您将看到一个显示所有 WordPress 数据库表的页面。

Check the box next to wp_comments
and wp_commentmeta
tables. The name of your comments tables may differ depending on the table prefix you choose during your WordPress安装.
选中wp_comments
和wp_commentmeta
表旁边的框。 注释表的名称可能会有所不同,具体取决于您在WordPress安装过程中选择的表前缀。
选择评论表后,找到表列表下方的“已选择:”下拉菜单,然后从下拉菜单中选择“空”。
选择评论表后,找到表列表下方的“选择时:”下拉菜单,然后从下拉菜单中选择“清空”。
PhpMyAdmin 现在将向您显示一条警告,询问您是否确实要清空这些表。
PhpMyAdmin 现在将显示一条警告,询问您是否确实要清空这些表。

单击“是”按钮继续。这将从您的数据库中删除所有 WordPress 评论。
单击“是”按钮继续。这将从您的数据库中删除所有 WordPress 评论。
You can also delete all WordPress comments using MySQL console (command line). Simply log into your MySQL console and run this command:
您还可以使用MySQL控制台(命令行)删除所有WordPress注释。 只需登录您MySQL控制台并运行以下命令:
TRUNCATE `wp_commentmeta`;
TRUNCATE `wp_comments`;
That’s all, we hope this article helped you learn how to easily delete all comments in WordPress. You may also want to see our list of 商业网站必备的 WordPress 插件
仅此而已,我们希望本文能帮助您学习如何轻松删除WordPress中的所有注释。 您可能还想查看我们对于商业网站的基本 WordPress 插件列表
If you liked this article, then please subscribe to our YouTube 频道 for WordPress video tutorials. You can also find us on 推特 and Facebook.
如果您喜欢这篇文章,请订阅我们的YouTube 频道 WordPress视频教程。 您也可以在推特和Facebook上找到我们。
翻译自: https://www.wpbeginner.com/wp-tutorials/how-to-easily-bulk-delete-all-wordpress-comments/
wordpress批量导入