How to connect database and joomla website on cpanel
===

There is a joomla 1.7 website I want to host.I have uploaded the database and the joomla folder to the cpanel.How can i do to connect the database and the joomla folder so that they can be accessed by the public?