in some cases the MySQL server will not allow outside connections.
Even if the server does allow for outside connections, Dreamweaver will need to access the server quite a bit wile generating the code and will sometimes hang up on establishing the connection.
When you use a local testing server, the connection to the database is much faster and will not hamper the development process.