define('WP_HOME','http://newsite'); define('WP_SITEURL','http://newsite'); define('RELOCATE',true);
UPDATE wp_posts SET guid = REPLACE (guid, 'http://oldsite', 'http://newsite'); UPDATE wp_posts SET post_content = REPLACE (post_content, 'http://oldsite', 'http://newsite'); UPDATE wp_postmeta SET meta_value = REPLACE (meta_value, 'http://oldsite', 'http://newsite');
Go through all options, load serialized values, replace in there, save again. If you do, do it before the SQL replace commandos.