double check the site definition settings for the testing server.
where you are trying to connect to the mysql database on the remote server, the testing server settings should be set to use FTP to connect to the remote server, and make sure the URL prefix is a valid URL for your site.