WP fix run site locally
WordPress has option(s) with site URL. To change them to new one use next SQLs:
UPDATE `wp_options` SET `option_value` = 'http://localhost' WHERE `wp_options`.`option_name` = 'siteurl';
UPDATE `wp_options` SET `option_value` = 'http://localhost' WHERE `wp_options`.`option_name` = 'home';