Migrating WP website from local host

If you are creating the new WP website on your local, then there is no need to pre-install WP on your new hosting server. Just copy all the data (files + Database) to the hosting. And then:

  1. Change the database details in wp-config.php
  2. Change the site url in the wp_options table in DB (2 entries)
  3. run a search replace script to change all old local url to new one (if required).
  4. Refresh the permalink once done.

Hope this helps. Let me know if you need any more help.