Not relative to this thread as there is not a problem creating a DB connection script in DW to use localhost and a specific port number.
In some cases we need to have specific ports rather than the default 3306. In this case I have some old clients that are not willing to update their old sites and their DB is in an earlier version than MySQL 5. So we run two instances of MySQL, one old version and one new version...using a different port for each of the two MySQL servers.