Quickly Find and Replace Text in MySQL


For a single table update

UPDATE `table_name`
SET `field_name` = replace(same_field_name, 'unwanted_text', 'wanted_text')

From multiple tables-

If you want to edit from all tables, best way is to take the dump and then find/replace and upload it back.

 

 

 

,

Leave a Reply