First, you will need to define a dynamic site in Dreamweaver:
http://www.webassist.com/tutorials/Define-a-dynamic-site-in-CS5
Then Create a PHP page in the site. With the PHP page open, the Database panel should allow you to create a connection.
http://www.webassist.com/tutorials/Create-a-PHP-database-connection