Re: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
Posted by: Ar 3,14
Date: September 18, 2009 10:48AM

the solution for me was, to check the connection url.
I`v fount two mistakes in that:
String url = "jdbc:mysql :// " + server + "/" + database;
The first one, the blank space after "mysql". It caused an : "No suitable driver found for jdbc:mysql :// ... " error,
and the second mistake was, another blank space, after "://". That caused the "com.mysql.jdbc.exceptions.jdbc4.CommunicationsException" error for me.
So, check the connection url, for unnecessary characters(blank spaces).
Helped to anybody ? :)

Options: ReplyQuote


Subject
Written By
Posted
Re: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
September 18, 2009 10:48AM


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.