Switching the domain of the wordpress

Hi,

I just bought a new domain and I need my wordpress site from my old domain to be changed to old domain.

I am using the same server just that switching the domain in the files and databases.