This guide is pretty good but misses a couple of steps!
https://www.quicksprout.com/2015/09/16/the-simple-guide-to-moving-your-wordpress-site-to-a-new-domain/
- Download the contents of your current public html folder
- Open phpMyAdmin
- Export the database to a file on your local machine
- Import the database to the new site
- On the new site, update “wp_options” table so that “home” and “siteurl” points to the new domain
- Edit the downloaded “wp-config.php” file so that the following are correct for the new domain:
- DB_NAME
- DB_USER
- DB_PASSWORD
- DB_HOST
- Upload the amended files to the new domain