how can i change my primary domain

does this take database changes ? I found info online that stated I would have to make wp database changes – Any links on info on how to do this much appreciated .
Thanks,
T