MySQL/JDBC connectivity issue
Posted by: Arvind Kumar
Date: April 06, 2015 09:39AM

I have three RHL (2) and CentOS (1) environments, at disperse locations with MySQL 5.5.42 or higher installed.
I am able to make MySQL DB connection using SSH via MySQL workbench and putty both.
But using java client app I am able to connect only 1, others are giving jdbc error -

com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct orAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC onstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)

I tried most of solutions suggest on different forums. Can someone guide me pleaseā€¦

Options: ReplyQuote


Subject
Written By
Posted
MySQL/JDBC connectivity issue
April 06, 2015 09:39AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.