Dreamweaver uses your php pages to connect to the database. So if you can create a working connection on your .php page, then you should be able to connect to the database in Dreamweaver as well.
If you go to your phpMyAdmin, the domain server name should be listed there. It is usually localhost when the database is on the same server, but it may be different in your configuration.