This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 142092 - Item "Connect" should be disabled if item "Start" is enabled
Summary: Item "Connect" should be disabled if item "Start" is enabled
Status: RESOLVED INVALID
Alias: None
Product: db
Classification: Unclassified
Component: MySQL (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: David Vancouvering
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-29 16:18 UTC by Roman Mostyka
Modified: 2008-07-29 17:01 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Mostyka 2008-07-29 16:19:03 UTC
1. Add MySQL server to the IDE.
2. Set server properties.
3. Rightclick MySQL server node.

Result: "Start" and "Connect" items are enabled. When "Connect" is pressed message that server isn't reachable appears.
If item "Start" is enabled, then server isn't running and it is impossible to connect to it and therefore item "Connect"
should be disabled.
Comment 1 David Vancouvering 2008-07-29 17:01:28 UTC
I actually had it set up this way before.  The problem is, we have no solid way of knowing whether the server is running
or not.  As you have seen with our other P1 bug, attempting to connect to see if the server is running can cause all
sorts of hanging problems.

So the state of the server is either "Connected" or "Disconnected."  When it's in the Disconnected state, we don't know
whether the server is running or not.  So both Connect and Start actions are potentially valid.