find and replace query in wordpress 5c

Solutions on MaxInterview for find and replace query in wordpress 5c by the best coders in the world

showing results for - "find and replace query in wordpress 5c"
Ivan
11 Jun 2019
1UPDATE wp_options SET option_value = replace(option_value, 'http://www.oldurl', 'http://www.newurl') WHERE option_name = 'home' OR option_name = 'siteurl';
2
3UPDATE wp_posts SET guid = replace(guid, 'http://www.oldurl','http://www.newurl');
4
5UPDATE wp_posts SET post_content = replace(post_content, 'http://www.oldurl', 'http://www.newurl');
6
7UPDATE wp_postmeta SET meta_value = replace(meta_value,'http://www.oldurl','http://www.newurl');