I install dump and use this script for database.
UPDATE wp_options SET option_value = REPLACE(option_value, ‘http://test.site.com’, ‘http://newsite.com’) WHERE option_name = ‘home’ OR option_name = ‘siteurl’;
UPDATE wp_posts SET post_content = REPLACE (post_content, ‘http://test.site.com’, ‘http://newsite.com’);
UPDATE wp_postmeta SET meta_value = REPLACE (meta_value, ‘http://test.site.com’,’http://newsite.com’);