It's a work in progress but it gets the job done.
Open application/config.ini.default in your favourite editor and enter your database details. Once that's done just rename it to config.ini and you should be good to go.
P.S. Don't forget to make sure you've denied access to the .ini files via your server config.