2011-12-18 53 views
1

如何查詢PhpMyAdmin刪除評論者添加他們的網站的WordPress評論?PhpMyAdmin查詢WordPress

也就是說,使用網址的人的評論:姓名,電子郵件,網站

我要刪除評論有網站數據。

+0

請告訴我們你已經得到了什麼 – Kokers

+0

請看本頁的背景:http://www.blogopreneur.com/2009/04/08/mass-delete-pending-comments-from-wordpress/ – patrickmdnet

回答

0

嘗試以下查詢,但在投入使用之前,請先備份數據庫。

DELETE FROM wp_comments 
WHERE comment_author_url like '%http://%'; 
0

wp_comments表有場comment_authorcomment_author_emailcomment_author_urlcomment_content,等等。

注意,在執行任何數據庫操作,你應該back up your database,因爲這些命令之前,如果使用不當,會刪除您博客所有評論。相反,如果你想

delete from wp_comments where comment_author_url like '%http://%'; 

如果你想刪除任何評論在這裏筆者放在網站在comment_author_url場(其中有許多做鑑定他們的「家」的博客,)你可以這樣做刪除評論在這裏筆者放置在網站的評論的內容(如常見的有垃圾評論)你可以做

delete from wp_comments where comment_content like '%http://%'; 

編輯你的問題有你想要做的,如果有什麼更多的細節這d oes不能回答你的問題。