com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:
** BEGIN NESTED EXCEPTION **
java.net.UnknownHostException
MESSAGE: 192.168.0.8;databaseName=treasury
STACKTRACE:
java.net.UnknownHostException: 192.168.0.8;databaseName=treasury
at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$1.lookupAllHostAddr(InetAddre ss.java:894)
at java.net.InetAddress.getAddressesFromNameService(I netAddress.java:1286)
at java.net.InetAddress.getAllByName0(InetAddress.jav a:1239)
at java.net.InetAddress.getAllByName(InetAddress.java :1155)
at java.net.InetAddress.getAllByName(InetAddress.java :1091)
at com.mysql.jdbc.StandardSocketFactory.connect(Stand ardSocketFactory.java:246)
at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:271)
at com.mysql.jdbc.Connection.createNewIO(Connection.j ava:2771)
at com.mysql.jdbc.Connection.<init>(Connection.java:1 555)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonReg isteringDriver.java:285)
at java.sql.DriverManager.getConnection(DriverManager .java:579)
at java.sql.DriverManager.getConnection(DriverManager .java:221)
at ConnectionSample.main(ConnectionSample.java:17)
** END NESTED EXCEPTION **
Last packet sent to the server was 16 ms ago.
at com.mysql.jdbc.Connection.createNewIO(Connection.j ava:2847)
at com.mysql.jdbc.Connection.<init>(Connection.java:1 555)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonReg isteringDriver.java:285)
at java.sql.DriverManager.getConnection(DriverManager .java:579)
at java.sql.DriverManager.getConnection(DriverManager .java:221)
at ConnectionSample.main(ConnectionSample.java:17)