WordPress - Change Domain

1. Open Site Admin >> Settings >> General
Change the “Site Address” and “WordPress Address” to the new domain
or change it in the DB directly:

update wp_options set option_value='http://[new domain]' where option_name='siteurl' or option_name='home'

2. Run the follow SQL in the DB:

update wp_posts set guid=replace(guid,'[old domain]','[new domain]');