Dreamweaver uses a php file that it uploads to the server to perform the communication with the MySQL server, so there should not be an issue with dreamweaver communicating with the database.
Make sure you have the site definition in Dreamweaver set up to use an FTP connection to the host for the testing server settings, using the remote server as the testing server should allow you to create the database connection to the remote mySQL server.