WordPress installation from live site to localhost

Update your wp_options table.

Look for siteurl and home and change their values to point to your localhost, that is, http://localhost/mylocalsite. This should be enough to make your site work again.

You don’t need to find and replace all instances where the old url is present. For example you should not change the guid of your posts.

Alse read this post on Moving WordPress.