UPDATE wp_options SET option_value='YOUR_SITE_URL' WHERE option_name='siteurl';
UPDATE wp_options SET option_value='YOUR_SITE_URL' WHERE option_name='home';
UPDATE wp_posts SET guid = replace(guid, 'OLD_URL', 'YOUR_SITE_URL');
UPDATE wp_posts SET post_content = replace(post_content, 'OLD_URL', 'YOUR_SITE_URL');
UPDATE wp_postmeta SET meta_value = replace(meta_value,'OLD_URL', 'YOUR_SITE_URL');