Migrate WordPress to New Domain

I always end up losing this much needed information. Below you will find the SQL statements to update a MySQL database with the correct information.

UPDATE wp_options SET option_value = replace(option_value, 'http://www.old-site.com', 'http://www.zerowizard.com') WHERE option_name = 'home' OR option_name = 'siteurl';

Update URLs posts and pages that are stored in database wp_posts table as guid field:

UPDATE wp_posts SET guid = replace(guid, 'http://www.old-site.com','http://www.zerowizard.com');

Update URLs of links in posts pages that are stored in the wp_posts tables:

UPDATE wp_posts SET post_content = replace(post_content, 'http://www.old-site.com', 'http://www.zerowizard.com');