Skip to main content

How to Delete All Comments From Wordpress hosted on Godaddy using myPHPadmin

So far i have not seen any good plugins to delete old comments.  My website thatmusicblog.com was on autopilot for a year without akismet and racked up literally 484,000 comments. I was not going to go through deleting them 20 at a time, and all the plugins i tried just didn't work.

After reading about myPHPadmin, i was slightly scared to log into the backend and send a script to the mySQL database. 

Its easier than it sounds.


  1. If you know your database password, skip to #2. if you don't, continue
    1. if you don't know your username and password, you'll have to change it. IF YOU CHANGE IT, you must also go into the FTP file manager and tell wordpress you've changed your password, i'll explain how below.
    2. click the pencil on the far right, next to "Manage via phpMyAdmin"
    3. click the password button on top nav
    4. put in a new password. you must remember this password and put it into the wp-config.php file.
    5. hover over content, right click "FTP file manager" and "open in new window"
    6. change the "page size:25" to "page size: 50"
    7. scroll down until you see "wp-config.php", click it and select "EDIT" on the top nav bar
    8. THIS FILE IS VERY IMPORTANT, DON'T FUCK THIS UP...
    9. press ctrl +f to bring up the find function and type the word 'password' without quotes
      1. here you will see a line: define('DB_PASSWORD', 'old_password');
      2. update 'old_password' with the new password you created. make sure quotes are included on the file. 
      3. if you changed anything else, you fucked up. 
      4. click the little "save" icon on top left.
  2. Select Manage via phpMyAdmin
  3. Login with username password
  4. click the SQL icon to enter code, it will bring up a new window.
    1. Below are 3 different ways to edit your comments. 
    2. After each query it will update another window, and it will say "xyz fields updated in abc seconds"
    3. You can refresh your website comments section to see if changes are happening.
    4. Here are different commands you could enter:




SQL Command to Delete all Pending Comments In Wordpress:
Code: delete from wp_comments WHERE comment_approved ="0";


SQL Command to Delete all Approved Comments in Wordpress:
Code: delete from wp_comments WHERE comment_approved ="1";


SQL Command to Delete ALL Comments In Wordpress:
Code: delete from wp_comments;

Comments

  1. Create your own blog and publish content on Grab. Grab is the only next to Dreamwidth for being public diary service.

    ReplyDelete
  2. GoDaddy Customer Care Number is one of the most searched for any helpline in India. Its provides you differnt languages customer care contact also.

    ReplyDelete
  3. Thanks for the valuable feedback. I think that strategy is sound and can be easily replicable. Great posts. I love this article.
    ___________________________________
    Best hosting for wordpress

    ReplyDelete

Post a Comment

Popular posts from this blog

Life Hacks

DIY Distilling with a Wok Still DIY AC DIY Fleshlight DIY Outdoor Luxe DIY PBR Burner Downloading Free Sunlight Forever Guide to Downloading ebooks on IRC Part 1 Guide to Downloading ebooks on IRC Part 2 Steampunk Goggles Weapons Delayed Fire and Incendiary Bomb DIY Shotgun Pipe Hand Grenade Drugs Drugs Venn Diagram Hallucinogen Awareness Painkillers Periodic Table of Beer Styles The Golden Age of Pills Recipes Creating LSD Extraction of DMT How to Cook Crack Mescaline Capsules Weed Green House Seed Flavour Pie How D'ya Smoke Pot and Stay Out of Jail? Okay You've Been Careful But... Stoner Etiquette Fashion A Very Short Guide to Dressing Well The 20 Laws of Fashion The MANual Food About Bread Foods on the Cheap Drinks Coffee Types Emergency Coffee Hollywood Happy Hour Mind Fuck Coffee Mixing Drinks Recipes 3 Minute Brownies 3-Bean Bu

Amazon Product Image Shortcut URL from ASIN

I'm trying to find a better way to build my affiliate pages. I've discovered a great way to find images of items that i hadn't known about before. http://images.amazon.com/images/P/B0051VVOB2.01.LZ.jpg http://images.amazon.com/images/P/ <- this is required B0051VVOB2 <- this is the ASIN .01.LZ.jpg <- this is required to follow the asin for large photos If you would like smaller, remove the LZ. http://images.amazon.com/images/P/B0051VVOB2.01.jpg

How-To: I'm Feeling Lucky Short Cut

Google's answers usually get me the best result first. Here is a chrome shortcut how to get to "i'm feeling lucky" first result! 1. Copy this URL: http://www.google.com/search?hl=en&q=%s&btnI=I%27m+Feeling+Lucky&aq=f&oq= 2. Go to Chrome Settings 3. Go to Manage Search Engines 4. Scroll to bottom and you'll see blanks to create new 5. In first box type "I'm Feeling Lucky" 6. In second box type "iflucky" or "ifl" (whatever you type here will be your shortcut in the search bar. 7. In the third box paste the URL i asked you to copy It should look like this image below.  Now it should work. Open a new tab and in the search bar type "ifl best waffles"