NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Database connection error

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
Nox



Joined: 13 Dec 2009
Posts: 27
Location: Brno, Czech republic

PostPosted: Thu Dec 31, 2009 5:11 pm    Post subject: Database connection error Reply with quote

Hi,
I'm not sure about all this... I use Services > Databases to connect to external MySQL server on webhosting but it most likely keeps (matter of seconds/a few minutes) disconnecting
It displays "Connection *** is broken" or sometimes "ConnectionException" so I guess it is similar to FTP timing out when FTP manager do not keep connection alive by sending some void commands ...is it possible to configure or implement in future versions? It's especially bad for CC since you don't work in Services but in code part and you have to switch back and forth reconnecting
(of course if I'm not mistaken about all this)

Thank you a lot!

----------------

Quote:
The Database Connection jdbc:mysql://***.**:####/*** [example.com on Default schema] seems to be broken.

Cause: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

Last packet sent to the server was 0ms ago.

----------------

Working with DB and CC is sometimes possible, still I have to reconnect every minute or less

Hm, I'm getting also this error (attachment 1)



nb_mysql_error.jpg
 Description:
 Filesize:  274.75 KB
 Viewed:  1628 Time(s)

nb_mysql_error.jpg


Back to top
Nox



Joined: 13 Dec 2009
Posts: 27
Location: Brno, Czech republic

PostPosted: Mon Feb 08, 2010 8:46 pm    Post subject: Reply with quote

Sorry for bumping, but it pains me a lot, if anyone would not something helpful, I'd be really grateful
Back to top
Nan Null
Posted via mailing list.





PostPosted: Fri Feb 12, 2010 3:29 pm    Post subject: Database connection error Reply with quote

I am not sure what's the issue reading your message below. If you
have another post, please click reply on that post, so that the
"thread" of the topic can be managed by the email clients.

On Mon, Feb 8, 2010 at 3:46 PM, Nox <address-removed> wrote:
Quote:
Sorry for bumping, but it pains me a lot, if anyone would not something helpful, I'd be really happy




Back to top
Nox



Joined: 13 Dec 2009
Posts: 27
Location: Brno, Czech republic

PostPosted: Sat Feb 13, 2010 12:54 pm    Post subject: Reply with quote

I change the title for I thought it was rather misleading, it's probably issue of the mailing list, on a forum here it works fine

http://forums.netbeans.org/viewtopic.php?p=59046

So the issue is:

When I connect to DB and work it's mostly fine but after like minute if I use Code-Completition or Refresh the connection

I get an error
Quote:
The Database Connection jdbc:mysql://***.**:####/*** [example.com on Default schema] seems to be broken.

Cause: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

Last packet sent to the server was 0ms ago.

And it gets disconnected

Also upon CC it sometimes throws an error: http://forums.netbeans.org/files/nb_mysql_error_174.jpg
but right now it somehow works just to make me angry Smile
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo