We found that the localhost web server wasn't running properly in a screen sharing session. If you can't browse the url listed as the testing server url in dreamweaver, then dreamweaver won't be able to connect to your database. Maybe look at any error files in your MAMP server or try reinstalling MAMP to resolve the problem. Once you can browse your localhost, I think you will also be able to view the database in dreamweaver.