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 217969 - New connection dialog use wrong connection on Next
Summary: New connection dialog use wrong connection on Next
Status: VERIFIED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: MySQL (show other bugs)
Version: 7.3
Hardware: PC Windows 8
: P3 normal (vote)
Assignee: Jaroslav Havlin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-07 03:40 UTC by Sergey Petrov
Modified: 2013-11-21 03:28 UTC (History)
5 users (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 Sergey Petrov 2012-09-07 03:40:04 UTC
- open Services
- right Database -> New Connection
- MySQL Driver
- set databse to "affablebean" and password to my password and tick remember
pwd
- Next

Error #1:

I got "Cannot establish a connection to
jdbc:mysql://localhost:3306/mysql?zeroDateTimeBehavior=convertToNull using
com.mysql.jdbc.Driver (Access denied for user 'root'@'localhost' (using
password: NO))". See attached screenhost. Which is weird - notice that url
contains "mysql" as database name despite JDBC URL containing "affablebean".

- I try "Test Connection" instead.

from issue 217432, may be "password remember issue need to be filed too)

I got the same "cannot establish..." but at least this time the URL is correct
one.

- Cancel wizard
- right click "MYSQL Server (disconnected)" and do Connect
- got some big dialog about "connection failed and maybe your settings are not
correct"
- Yes update my settings
- set password and ticked save password again

Now it looks like connection was established. Let's try to make new connection
again:

- right Database -> New Connection
- MySQL Driver
- set databse to "affablebean" and password (AGAIN empty!) to my password and
tick remember pwd
- Next

The same Error #1 with wrong URL

- Let's try Test COnnection instead
- Connection Succeeded!!!!
- Next, Next, Finish

OK, now I have connection. Let's open the AffableBeans project and
Comment 1 Jaroslav Havlin 2012-09-07 11:37:50 UTC
http://hg.netbeans.org/core-main/rev/f739be76bb72
Seems to work fine now. Please verify.
Thanks for reporting.
Comment 2 Quality Engineering 2012-09-08 02:07:05 UTC
Integrated into 'main-golden', will be available in build *201209080001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/f739be76bb72
User: Jaroslav Havlin <jhavlin@netbeans.org>
Log: #217969: New connection dialog use wrong connection on Next
Comment 3 Tomas Danek 2012-10-08 14:03:44 UTC
Sergey, can you please verify, so that we can backport to 7.2.1? Thanks in advance.
Comment 4 Petr Jiricka 2012-10-08 17:09:12 UTC
Sergey is out starting today, could someone else verify? Cc'ing also Jirka.
Comment 5 Sergey Petrov 2012-10-09 07:27:44 UTC
proper connection is used now in 20121005, regarding password save independent from db registration password save it may be ok.
Comment 6 Jaroslav Havlin 2012-10-09 11:57:52 UTC
Integrated into release72:
http://hg.netbeans.org/releases/rev/f2d69d3a0100
http://hg.netbeans.org/releases/rev/e776f6803264
Comment 7 Quality Engineering 2012-10-10 14:17:48 UTC
Integrated into 'releases', will be available in build *201210100934* or newer. Wait for official and publicly available build.
Changeset: http://hg.netbeans.org/releases/rev/f2d69d3a0100
User: Jaroslav Havlin <jhavlin@netbeans.org>
Log: #217969: New connection dialog use wrong connection on Next