I assume you were trying to copy your live WordPress site to Local.
The easiest way to do that is using a backup plugin. I used UpdraftPlus plugin from WordPress repo. Backup your live site with the plugin and don’t forget to use a cloud storage, I was using Google Drive.
Then on your Local site, install the same plugin and do the restore from cloud storage backups.