If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > mysql mass delete

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-29-10, 01:39
dwidb dwidb is offline
Registered User
 
Join Date: Dec 2010
Posts: 1
mysql mass delete

Hi friend,
My site got hack attack. this hacker put unpleasant sentence in all my articles. I have huge number of articles, I just wondering is it possible to delete unpleasant sentence in all my articles from database? so i can delete it in one go..

Last edited by dwidb; 12-29-10 at 01:43.
Reply With Quote
  #2 (permalink)  
Old 12-29-10, 05:54
r937 r937 is online now
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,534
yes it's possible
Code:
UPDATE sometable 
   SET somecolumn = REPLACE(somecolumn,'bad sentence','')
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 01-08-11, 10:28
drhalens drhalens is offline
Registered User
 
Join Date: Jan 2011
Location: Cialis canada online
Posts: 1
You can also do it without php by just using phpmyadmin's search function. B

But before making any changes I recommend to find the hole in your security to prevent future attacks.
Reply With Quote
  #4 (permalink)  
Old 01-08-11, 11:47
r937 r937 is online now
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,534
Quote:
Originally Posted by drhalens View Post
You can also do it without php ...
who mentioned php?

but you're right, closing the door is a good idea
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On