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 86586 - "jdbc:mysql://localhost:/test" on New Database Connection dialog, but ":" is not necessary
Summary: "jdbc:mysql://localhost:/test" on New Database Connection dialog, but ":" is ...
Status: RESOLVED DUPLICATE of bug 89532
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 9 (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Nitya Doraisamy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-05 14:45 UTC by Masaki Katakai
Modified: 2007-02-06 22:31 UTC (History)
1 user (show)

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 Masaki Katakai 2006-10-05 14:45:58 UTC
NB: 5.5 RC1
OS: All

When I tried to use mysql with persistence, it seems that unnecessary ":"
is listed on New Database Connection dialog.

Database URL: "jdbc:mysql://localhost:/test"

It's not correct, port number should be after ":" or ":" is not needed.

1. Setup mysql driver
2. create new connection for the driver

I set the database URL to "jdbc:mysql://localhost/test"
I didn't specify the port number in this step.

3. create web application project
4. create persistence unit, specify the new JNDI name e.g jdbc/test
   and the connection of mysql
5. create "Entity class from Database", specify the datasource "jdbc/test"

At this point, new database connection dialog is invoked. But on the dialog,
"jdbc:mysql://localhost:/test" is the default value for "Database URL",
but it's not correct so I need to correct the URL by removing ":".

I'm not sure if this bug belongs to j2ee or db. Please chnage the
component if it's not proper.
Comment 1 Andrei Badea 2006-10-09 17:08:09 UTC
Nitya, I think this is yours.
Comment 2 Vince Kraemer 2007-02-06 22:31:16 UTC

*** This issue has been marked as a duplicate of 89532 ***