LinuxHelps.com

A blog for Linux Lovers.

Archive for the 'Miscellaneous' Category


How to delete all comments in the wordpress

Saturday, April 16th, 2011
Miscellaneous | No Comments »

To Delete All Comments Awaiting Moderation in WordPress:
(Make sure that you have tacken a db backup)
From phpmyadmin  select your WordPress database, click the sql tab, and enter the following query:
SELECT *FROM wp_comments WHERE comment_approved =”0″
That will select all the un-moderated comments. Then enter this query:
delete from wp_comments WHERE comment_approved =”0″
Run a check and repair on [...]

Flushing DNS cache

Sunday, May 24th, 2009
Miscellaneous | No Comments »

You can flush your DNS cache as per following.
1) For Windows
Start -> Run -> type cmd
- in command prompt, type ipconfig /flushdns
- Done! You Window DNS cache has just been flush.

2) For Linux
- To restart the nscd daemon, type /etc/rc.d/init.d/nscd restart in your terminal
- Once you run the command your linux DNS cache [...]