需要 MySQL 查询来删除 WordPress 评论
我的 WordPress 网站最近被黑客攻击,所以我不得不重新安装所有内容。重新安装了 WordPress,导入了数据库备份,一切都很好。然后我安装了 Disqus 插件并同步(Disqus 之前在网站被黑客攻击之前使用过)。显然是大禁忌。现在我网站上的每条评论都有副本!更糟糕的是,重复的评论已同步回 Disqus!
所以,我知道这是 PHPMyAdmin 中的一个简单查询,但我不知道!请帮忙!
My wordpress site was recently hacked so I had to reinstall everything. Wordpress resinstalled, database backups imported, everything fine and dandy. Then I installed the Disqus plugin and synced (Disqus was previously used before the site was hacked). Big no-no apparantly. Now I have a duplicate of every single comment on my site! Even worse, the duplicate comments have been synced BACK to Disqus!
So, I know this is a simple query in PHPMyAdmin but I don't know it! Please help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
请记住,有一个一个 WordPress Stack Exchange 网站;)
我会使用 PHP,除非您立即知道 wpdb 名称。一定要先备份数据库!就像这样:
Keep in mind that there is a WordPress Stack Exchange website ;)
I would use PHP unless you know the wpdb name off the top of your head. Be sure to back up the DB first! Like so:
如果他不知道如何使用 mysql,我认为重新编辑 wp 界面很棒,因为通常 wp 会在那里创建查询的构建函数。这可能会再次导致它的毁灭。
它不起作用的唯一原因可能是因为他们使用的插件。!我想是的。!
If he doesn't know how use mysql, I think re editing the wp interface is great, because usually wp creating there build function for queries. And it may lead again to destruction of it.
The only reason why it doesn't work maybe its because of the plug in they use.! I think so.!
mysql 中删除的查询是
但我认为 wordpress 有其内置的数据库查询用于选择删除和更新。
如果你使用 Disqus 插件,这是另一个
The query for deleting in mysql is
But I think wordpress has its build in database queries for select delete and update.
Here's another if you use the plugin Disqus