So, today, when I migrated one of our client’s sites from our staging server to the live/production server, I was frustrated that some of the widgets weren’t showing up properly after my usual Search and Replace of the old URL to the new URL in the database, yet excited that I could read her post to find a solution. Frustrexcited, if you will.
Here are the solutions I tried and read on to see which one actually worked:
WP Live Server Deploy: This plugin was featured on wpmu.org, looked like a really good solution. The plugin claimed to quickly migrate your development/staging site to your live/production site, including changing all the old URLs to new URLs. Well, it sounded great, but.. it didn’t work. After I entered the new site’s FTP information into the plugin settings, the FTP info was verified. But when I clicked the “Automate Deployment” button, the plugin couldn’t “determines the remote capabilities of the server”. Then I tried to do a manual backup using this plugin and that didn’t work either. Next.
Peach – An online tool that lets you drag-and-drop a .sql file into the page and set a new domain. I was skeptical because it looked too easy. When I dropped in my .sql file it said there were 0 serialized links. Boo.
WP Migrate DB – My new best friend. Please meet WP Migrate DB. No, he/she doesn’t have a fancy, memorable name, but I definitely wanted to hug and high-five this plugin after it did what it said it would do. It changed all the old URLs to new URLs in the database, including fixing serialized links, and lets you download the new SQL file. I was so happy not to have to mess with any Search and Replace plugins or SQL queries in PHPMyAdmin.