Not sure if it works on a local dev environment but you can also try using the Duplicator plugin to migrate your site to the hosting environment.

https://wordpress.org/plugins/duplicator/