If you want to change a WordPress site’s domain name (or base URL), which will often happen when you’re copying a site from staging to production, or from local to live, there are a number of steps to following, outlined at http://codex.wordpress.org/Moving_WordPress.
However, here is a shortened summary of how I run this on non-multisite sites (multisite sites are a pain!):