Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Re: Java/Eclipse - JDBC - MySQL: Communications link failure

843859Nov 25 2008 — edited Jan 25 2010
Patrick_Stiady wrote:
2. I have downloaded and extracted mysql-connector-java-5.1.7-bin.jar from http://dev.mysql.com/downloads/connector/... and set the eclipse build path to use the file as an external JAR.

3. I have also tried to use either mysql-connector-java-5.1.5.jar, mysql-5.1.5.jar, mysql-connector-java.jar, or mysql.jar installed by Synaptic manager from Ubuntu repositories.
Don't try random drivers. Use the driver suitable to your DB version. Which MySQL server version are you using? At any way, did they all give the same error? Does the MySQL server accept TCP/IP connections? The mysqld should be started without the --skip-networking option.
10. I have not tried using netbeans IDE, since I have problem to download large file. Do many people think that it could be IDE problem?
Certainly not. The IDE is just a tool. Also forget Netbeans for a while, it is in no way better than Eclipse.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 22 2010
Added on Nov 25 2008
8 comments
778 views