Archive for September 16th, 2008

Taking Chances with Ones and Zeroes

I just went into a live online database via PHPMyAdmin and deleted 22,000 spam comments from a client’s WordPress blog all at once. That’s the first actual database operation I’ve ever done! Scary, even with a backup. Not that I want to make a habit of it — too much potential for destruction. But I can now claim to have executed a command that looks like this:

SELECT *FROM wp_comments WHERE comment_approved =”0″
delete from wp_comments WHERE comment_approved =”0″

And lived to tell the tale. Thanks to this guy for the instructions.

cpd

2 comments September 16th, 2008 Trackback Bookmark on del.icio.us


Bookmark and Share

Follow Epolitics.com

Follow Epolitics.com on Twitter    Follow Epolitics.com on Facebook     Follow Epolitics.com on Twitter

Email updates (enter address)


SEARCH EPOLITICS.COM


Download Winning in 2012 Ebook Download Learning from Obama

Highlights

Calendar

September 2008
M T W T F S S
« Aug   Oct »
1234567
891011121314
15161718192021
22232425262728
2930  

Most Recent Posts

Calendar

September 2008
M T W T F S S
« Aug   Oct »
1234567
891011121314
15161718192021
22232425262728
2930  

Posts by Month

Posts by Category

home about contact colin delany put e.politics to work