When setting up a wordpress site, I’ll usually develop it in a staging environment and then deploy it live. In the past i’ve been manually changing the database as per the instructions I found a couple of years ago. I decided to see if there was an easier solution and there is.
Wordpress has information on changing the site url
In other wordpress tips, Xammp lite is fantastic for setting up a small little dev site locally.