Jump to content

Use php to find and replace in entire mysql db?


lordvader

Recommended Posts

I know you can do a query to find and replace all instance of let's say $haystack, $needle, with:

 

UPDATE tablename SET tablefield = replace(tablefield,$haystack,$needle);

 

but that only works for a specific table and a specific field within the table.

 

What do I change so I can search and replace throught the entire database?

 

Thanks

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.