Java NetBeans & MySQL Connection

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
baran
Posts: 74
Joined: 8. Feb 2010, 17:41

Java NetBeans & MySQL Connection

Post by baran »

Hi,

I did install NetBeans 7.0.1. I did test to make a simple app with MySQL connection. Problem ... It writes me:

cannot establish a connection to jdbc:mysql://localhost:3306/mysql using com.mysql.jdbc.Driver (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.)

Screen: http://files_to_forums.remontsw.eu/java_mysql_connection.jpg

I did test to install new driver from http://dev.mysql.com/downloads/connector/j/ , but it writes the same error text :-((( Can you help me, please?

Thank you.

Rene
baran
Posts: 74
Joined: 8. Feb 2010, 17:41

Re: Java NetBeans & MySQL Connection

Post by baran »

Hi,

I did become little info. MySQL works through pipe with apache, but not through tcp/ip with Java. This is the problem. I did test it to setup in my.cnf, but without success :-(((



Rene
baran
Posts: 74
Joined: 8. Feb 2010, 17:41

Re: Java NetBeans & MySQL Connection

Post by baran »

Hi,

i did find it. I did exchange /etc/rc.d/rc.mysql file. ;-)

Already work's :-)


thank you


R.
Post Reply