Page 1 of 1

Java NetBeans & MySQL Connection

Posted: 17. Sep 2011, 09:30
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

Re: Java NetBeans & MySQL Connection

Posted: 18. Sep 2011, 08:39
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

Re: Java NetBeans & MySQL Connection

Posted: 18. Sep 2011, 16:33
by baran
Hi,

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

Already work's :-)


thank you


R.