MySQL Wordpress change URL’s Print

  • 0

UPDATE wp_options SET option_value = replace(option_value, 'www.placefinder.com', 'pf.fancymedia.net') WHERE option_name = 'home' OR option_name = 'siteurl';

UPDATE wp_posts SET post_content = replace(post_content, 'www.placefinder.com', 'pf.fancymedia.net');

UPDATE wp_postmeta SET meta_value = replace(meta_value,'www.placefinder.com','pf.fancymedia.net');

UPDATE wp_usermeta SET meta_value = replace(meta_value, 'www.placefinder.com','pf.fancymedia.net');

UPDATE wp_links SET link_url = replace(link_url, 'www.placefinder.com','pf.fancymedia.net');

UPDATE wp_comments SET comment_content = replace(comment_content , 'www.placefinder.com','pf.fancymedia.net');

UPDATE wp_posts SET post_content = replace(post_content, 'www.placefinder.com', 'pf.fancymedia.net');

UPDATE wp_links SET link_image = replace(link_image, 'www.placefinder.com','pf.fancymedia.net');

UPDATE wp_posts SET guid = replace(guid, 'www.placefinder.com','pf.fancymedia.net');

UPDATE wp_posts SET guid = REPLACE(guid, 'www.www.placefinder.com', 'pf.fancymedia.net') WHERE guid LIKE 'http://pf.fancymedia.net/%';


Was this answer helpful?

« Back