We are going to see as step by step migrating WordPress from a domain to another one.
Step 1. To copy all the content of our WordPress, to copy all the archives and folders.
Step 2. To enter PhpMyAdmin (or any other database manager), and we exported the data base. Simply we entered our data base and we give the option to export.
Step 3. To concern the data base in your local MySQL or any other remote servant.
Step 4. To execute the following SQL on the data base that we finished mattering, and to change the domains by yours.
Step 5. Podriamos to include update by SQL of the table wp_options, but can cause that the configuration of our subject is broken and we must do it again, etc. Then enters of form manual this table and pon your new domain and to change to the domain in option_name site, home, and any other site where you see that it is the old domain. You can make a search in that table to remove the fields where it is the old domain.
This is everything to migrate WordPress from a domain to another one, or of the servant to localhost or localhost to the servant.