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 146986 - Bundled MySQL server can't be stopped, but can be started
Summary: Bundled MySQL server can't be stopped, but can be started
Status: VERIFIED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: MySQL (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: David Vancouvering
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-11 17:57 UTC by Roman Mostyka
Modified: 2008-09-12 15:41 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Message shown on MySQL server start (12.07 KB, image/png)
2008-09-12 13:23 UTC, dlipin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Mostyka 2008-09-11 17:57:01 UTC
1. Install NetBeans with bundled MySQL.
2. Start MySQL.
3. Stop MySQL.

Result: Message "C:\Program Files\MySQL\MySQL Server 5.0\bin\mysqladmin.exe: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'" appears in Output window and MySQL server isn't
stopped. If user is able to start MySQL server without any additional actions, then it should be possible to stop in the
similar way.
Comment 1 David Vancouvering 2008-09-11 19:07:50 UTC
Hi, Dmitry, I am just using the properties you set, so perhaps we need to change the properties or the stop MySQL
script?  I'm not sure what component to assign this to...
Comment 2 dlipin 2008-09-11 22:12:58 UTC
Roman, could you please describe the steps to reproduce the issue?
What was the installation in details? Was the installation proceeded with all default values or have you change 
something?
Did you set the password or left it empty (default)? 

could you please post the whole output on MySQL server start? and the same for stop, please?

And, please, attach your <netbeans>/etc/netbeans.conf file and the corresponding installation log (from ~/.nbi/log/).

thanks,
Dmitry
Comment 3 dlipin 2008-09-12 13:22:27 UTC
BTW, we (installer) do not pass the path to mysqladmin.exe - so you Roman likely configured it himself.

I`ve installed the latest NetBeans/MySQL installer (200809101401) and set non-empty password during installation.
By design, the MySQL is started during the installer work.
When I launched NetBeans, IDE could not determine that (not a suprise since the default empty password is used in the 
IDE). What I tryied to start MySQL the error message (see next attachement) was shown.

The output is the following and I would say that it is expected.
> The requested service has already been started.
>
> More help is available by typing NET HELPMSG 2182.
Comment 4 dlipin 2008-09-12 13:23:17 UTC
Created attachment 69747 [details]
Message shown on MySQL server start
Comment 5 Roman Mostyka 2008-09-12 15:40:54 UTC
Yes, I see the same message and behavior it also the same.
When I installed NetBeans with bundled MySQL, I set non-empty password.
But I think I had this issue because I run NetBeans built from trunk and MySQL server was added to it automatically with
settings for bundled MySQL.
I installed now NetBeans with bundled MySQL and start installed NetBeans (but not built from trunk) and everything is
fine now. I see the same message as you and I see "C:\WINDOWS\system32\net.exe" with different arguments for starting
and stopping of MySQL server on Windows.
Comment 6 Roman Mostyka 2008-09-12 15:41:13 UTC
Verified with build 080911.