The data you will need to supply will vary according to your hosting solution. These data are normaly supplied by the hosting company when you get your hosting for the first time, as long with accesses to you phpMyAdmin and ftp acesses.
phpMyAdmin will give you the answer to most of your questions in the database part, however it won't reveal your account information.
If you are in localhost, then you shoul have all the data.
Connection name : build it and name it inside PHP
Mysql server : localhost (or content of config file of apache)
Username : your definition when you have created the DB (can be empty)
Password : your definition
Database : you've created it in phpMyAdmin
$db = mysql_connect ($hostname, $admin, $password) or die("Impossible to access database!");
mysql_select_db ($database, $db);
would be the code to connect.
Contact me is you have any more questions
Visit my page: http://www.webrickco.com