All posts in WP

Update URL from PhpMyAdmin

UPDATE wpprefix_options SET option_value = replace(option_value, ‘http://olddomain.com’, ‘http://newdomain.com’) WHERE option_name = ‘home’ OR option_name = ‘siteurl’;

UPDATE wpprefix_posts SET guid = replace(guid, ‘http://olddomain.com’,’http://newdomain.com’);

UPDATE wpprefix_posts SET post_content = replace(post_content, ‘http://olddomain.com’, ‘http://newdomain.com’);

UPDATE wpprefix_postmeta SET meta_value = replace(meta_value, ‘http://olddomain.com’, ‘http://newdomain.com’);