**This issue appears to be similar to, or the same as, issue 161549 (different Linux dist.)
I know this is not a new topic, but nothing I have read in previous posts (or anywhere else, for that matter) shed any
light on why I (and others I know) can't connect to the MySQL server using Netbeans 6*.
I am running ArchLinux, the server can be started and stopped at:
The mysql executable is where it should be: /usr/bin/mysql.
Absolutely no problems using any other client connection, at:
skip-networking in my.cnf has been commented out.
I've read the tutorial. The routine for registering a MySQL server in NetBeans will not work and is obviously faulty (if
I start the server independently, the Start option in the menu is not greyed out. Likewise, if the server has not been
started independently, and I try to start it using the registration dialogue -- which of course does not work --
nevertheless the Start option will be greyed out, as if the server was running (which it is not, as an independent check
demonstrates). It seems to me to be more than obvious that there is some problem with NetBeans, but what? and can it be
Just for the sake of completeness, although again nothing new, the error message that is consistently given is:
-- Unable to connect to the MySQL server:
-- org.netbeans.api.db.explorer.DatabaseException: org.netbeans.api.db.explorer.DatabaseException:
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
-- Last packet sent to the server was 0ms ago..
Any help is appreciated. Just to repeat, my MySQL settings are correct, they worked for NetBeans 5*, I've done my
research and have not found anything useful.
I'm evaluating this problem...
It also fails for windows vista and xp
I have been working in an application and I backup the db for use in my house, I instaled mysql 5.1 with all the tools
and I cant connect to the server. Please refer to the image.
Created attachment 80460 [details]
This is the error in windows vista. It says exactly the same in xp
Sorry, I miss to tell you that I can connect via mysql tools and from and the mysql odbc driver.
When I add the mysql driver, and I open the combobox, the mysql driver name appears four times, and I installed only
one. Maybe this help you.
It seems as a problem with proxy server while creating a network socket. Could you run your IDE with verbose logging.
i.e. run IDE with command options: -J-Dorg.netbeans.core.NbProxySelector.level=-1
-J-Dorg.netbeans.core.ProxySettings.level=-1 and then send your messages.log back? Thanks
Here is the log, hope this is what you asked for...
Thanks for the fast reply...
Created attachment 80548 [details]
I used the options you said
Created attachment 80549 [details]
Maybe this is the correct log.
I have exactly same issue on Pardus Linux with Netbeans 6.5.1 and Mysql 5.0.51b . I started netbeans with
-J-Dorg.netbeans.core.NbProxySelector.level=-1 -J-Dorg.netbeans.core.ProxySettings.level=-1 options but I can't find
where message.log file is.
Is there any thing new about this issue ?
To nightwalker_s: the messages.log is placed in your home directory, like C:/Users/<account_name>/.netbeans/<NetBeans
I have this problem in Vista and in XP. Can connect to database with Gui Tools. Can connect to database through my
code, but if I want to use Hibernate or just connect via the Services tab in Netbeans 6.5
Has there been any feedback on this issue yet jrechtacek??
NB6.7 was released already - http://www.netbeans.org/community/releases/67/
Postpone fixing this issue on the next release.
I solved this issue by adding
and by commenting the variable
Is it still a valid problem in NB7.0M2?
I also can't connect to the MySQL server, using NetBeans with PCLinuxOS and Netbeans 7.0 beta.
The MySQL server is running and other software and drivers are able to connect to the MySQL server such as MySQL Administrator but the Netbeans connection wizard just reports.
"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.)"
Resolved this by editing the MySQL startup parameters file and commenting out "skip-networking".