If you are upgrading a magento website you will need to change the DB detail, you can find the configuration here.