changes to allow non-standard mysql port number