Migrating WordPress to a different server

If you need to migrate WordPress to another server, sometimes it will have a different URL. That will break all the image links in the content of the pages.

The best thing to do is do a bulk replace in MySQL.  The command is as follows

update wp_posts set post_content = replace(post_content, ‘searchURL’, ‘replaceURL’);