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 123290 - Auto-register a connection for MySQL
Summary: Auto-register a connection for MySQL
Status: RESOLVED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: David Vancouvering
URL: http://wiki.netbeans.org/AutoRegister...
Keywords: PLAN, UI
Depends on:
Blocks:
 
Reported: 2007-12-03 20:37 UTC by David Vancouvering
Modified: 2008-02-13 17:28 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Vancouvering 2007-12-03 20:37:00 UTC
PostgreSQL is often set up by default to be at a default port on localhost with the 'postgres' user.  It would be useful
to automatically register a connection with these defaults so that in many cases a user can "just connect" to PostgreSQL
out of the box.
Comment 1 David Vancouvering 2007-12-03 21:51:07 UTC
Adding MySQL to this, we should do both of them.  Also pointed to the UI/Functional spec for this enhancement.
Comment 2 Andrei Badea 2007-12-06 10:45:57 UTC
FWIW, -1 from me. 

The benefit of registering such connections for a Java user is questionable; the user can register the (correct, not
guessed!) connections himself/herself, it's not a big deal since the driver is already registered. As for users of other
technologies such as Ruby and PHP, what we need to do is make shield JDBC from them, not autodetect some connection and
hope it's the one they want to use.

By the way, how do you know which database is the default when you don't specify one in the connection URL? Do you think
it's common for users to connect without explicitly specifying a database name?

Do you plan to at least check if there is a server running on the default ports before registering the connection? Do
you plan to make sure that if the users deletes the connections, they don't get re-added after restart?
Comment 3 David Vancouvering 2008-02-01 23:35:47 UTC
Hi, please review this spec.  Thanks!
Comment 4 David Vancouvering 2008-02-13 16:44:06 UTC
No comments, so I'm assuming this is OK
Comment 5 David Vancouvering 2008-02-13 16:45:16 UTC
Will not be doing PostgreSQL in this release, or if I do I'll make it a separate issue.
Comment 6 David Vancouvering 2008-02-13 17:28:56 UTC
Checked in revision a619565a1a7b