=== modified file 'src/com/mysql/jdbc/ConnectionImpl.java' --- src/com/mysql/jdbc/ConnectionImpl.java 2009-08-14 19:31:41 +0000 +++ src/com/mysql/jdbc/ConnectionImpl.java 2009-09-22 10:24:42 +0000 @@ -731,7 +731,7 @@ if (hostToConnectTo == null) { this.host = "localhost"; - this.hostList.add(this.host); + this.hostList.add(this.host + ":" + portToConnectTo); } else if (numHosts > 1) { // multiple hosts separated by commas (failover) @@ -743,7 +743,7 @@ } } else { this.host = hostToConnectTo; - this.hostList.add(this.host); + this.hostList.add(this.host + ":" + portToConnectTo); } this.hostListSize = this.hostList.size();