Search Replace for WordPress
Beware using the last query, as it may interfere with serialized strings
update wp_PREFIX_posts set guid = replace(guid, 'SEARCH_STRING', 'REPLACE_STRING') where instr(guid, 'SEARCH_STRING') > 0
//Find values ending without '/'
// This one is for site_url and home_url
update wp_PREFIX_options set option_value = replace(option_value, 'SEARCH_STRING', 'REPLACE_STRING') where instr(option_value, 'SEARCH_STRING') > 0
// Find values ending with '/'
update wp_PREFIX_options set option_value = replace(option_value, 'SEARCH_STRING/', 'REPLACE_STRING/') where instr(option_value, 'SEARCH_STRING/') > 0