To migrate your WordPress from your local machine to the live domain, follow the below steps
- Login to the WordPress admin section
- Go to plugins->Add New
- Search for “wp migrate db”
- Activate the first plugin in the result
- Go to Tools->wp migrate db
- Give the old url, new url, old physical path and new physical path
- Once you submitted this form, you will be able to download one sql file
- Download this sql file and upload it in the new live site
- Copy all the files from the local machine and upload into the live hosting server using any ftp client tool(Ex: FileZilla Client)
- Change the DB configuration settings in the wp-config.php