Skip to main content
Inspiring
January 4, 2010
Question

Connecting to Amazon cloud DB (MySQL) from our web server

  • January 4, 2010
  • 1 reply
  • 1056 views

I have the IP and port of the remote database server (MySQL5) set up in our Firewall configuration.  When I attempt to connect to the database in the CF (running version                  8,0,1,195765 Enterprise) Administrator, I get the following error.  Any suggestions?  Is there something obvious that I'm overlooking?

Connection verification failed for data source: AdConsole

com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception: ** BEGIN NESTED EXCEPTION ** java.net.UnknownHostException MESSAGE: 174.129.0.0 STACKTRACE: java.net.UnknownHostException: 174.129.0.0 at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method) at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:849) at java.net.InetAddress.getAddressFromNameService(InetAddress.java:1200) at java.net.InetAddress.getAllByName0(InetAddress.java:1153) at java.net.InetAddress.getAllByName(InetAddress.java:1083) at java.net.InetAddress.getAllByName(InetAddress.java:1019) at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:163) at com.mysql.jdbc.MysqlIO.(MysqlIO.java:267) at com.mysql.jdbc.Connection.createNewIO(Connection.java:2739) at com.mysql.jdbc.Connection.(Connection.java:1553) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266) at coldfusion.server.j2ee.sql.pool.JDBCPool.createPhysicalConnection(JDBCPool.java:589) at coldfusion.server.j2ee.sql.pool.ConnectionRunner$RunnableConnection.run(ConnectionRunner.java:67) at java.lang.Thread.run(Thread.java:619) ** END NESTED EXCEPTION ** Last packet sent to the server was 0 ms ago.

The root cause was that: com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception: ** BEGIN NESTED EXCEPTION ** java.net.UnknownHostException MESSAGE: 174.129.0.0 STACKTRACE: java.net.UnknownHostException: 174.129.0.0 at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method) at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:849) at java.net.InetAddress.getAddressFromNameService(InetAddress.java:1200) at java.net.InetAddress.getAllByName0(InetAddress.java:1153) at java.net.InetAddress.getAllByName(InetAddress.java:1083) at java.net.InetAddress.getAllByName(InetAddress.java:1019) at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:163) at com.mysql.jdbc.MysqlIO.(MysqlIO.java:267) at com.mysql.jdbc.Connection.createNewIO(Connection.java:2739) at com.mysql.jdbc.Connection.(Connection.java:1553) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266) at coldfusion.server.j2ee.sql.pool.JDBCP...

This topic has been closed for replies.

1 reply

Inspiring
January 12, 2010

It seems to be saying it cannot resolve the host name.  Can you ping the host name from a command line on the CF server (ie: can the CF server see it?).

What if you use an IP address instead of a host name?

Is the MySQL server configured to accept remote connections from the account you're trying to connect with (although I would expect a different error if that was the problem?  Not sure).

Can you connect to MySQL via the command line from the CF server, using those same credentials?

--

Adam