When defining a database connection in dreamweaver, it uses the testing server settings for connecting to the server.
make sure that you have defined a testing server in your site definition, and that the testing server connection uses the same settings as the remote server connection.