you should try to export your xml file from your live site with the export tool and import this xml file to your fresh wordpress setup on your localhost. but before import FIND AND REPLACE your url with localhost and save that xml file. and then import this to your localhost wordpress. this is a better solution for moving wordpress sites.