This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes Issues with registering MySQL to Netbeans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Issues with registering MySQL to Netbeans" Watch "Issues with registering MySQL to Netbeans" New topic

Issues with registering MySQL to Netbeans

John Paterson
Ranch Hand

Joined: Mar 12, 2012
Posts: 159
Hi Folks,

Pardon me if this is the wrong place to post this. I was trying to register mysql with netbeans based on instructions given in the following page: I have run into some trouble. When I right clicked on the MySQL Server node in the services tab, and selected stop I received an error message that asked me to correct the error for 'Path to stop command'. When I restarted netbeans, and started the database from netbeans, the 'stop' command was greyed out. I than went to Computer Management's Services to stop MySQL. I re-started netbeans, this time I am not even able to startup my SQL from netbeans, I am not sure what is wrong. My 'Admin Properties' settings for the 'MySQL Server Properties' dialog box are as follow:

Path/URL to admin tool: C:\Program Files\MySQL\MySQL Server 5.5\bin\mysqladmin.exe

Path to start command: C:\Program Files\MySQL\MySQL Server 5.5\bin\mysqld.exe

Path to stop command: C:\Program Files\MySQL\MySQL Server 5.5\bin\mysqladmin.exe

Arguments: -u root stop

I understand I have selected the same option for both 'Path/URL to admin tool' and 'Path to stop command', the path and file mentioned in the instructions are not available on my system, I suspect the version of mysql on which the instructions are based on is an older version. My version is as follow:

MySQLServer 5.5
MySQL WorkBench 5.2 CE.

I hope someone can advise. Thanks.
K. Tsang

Joined: Sep 13, 2007
Posts: 2941

Base on the website, it is indeed possible to start/stop MySQL inside Netbeans.

Have you tested those commands in the command prompt? Did it actually start and stop or access the admin tool?

By the way, if you already have a Windows services for MySQL to auto start when OS boots, then don't bother with the Netbeans config. Just use it for JDBC connections.

It is sorta covered in the JavaRanch Style Guide.
subject: Issues with registering MySQL to Netbeans
It's not a secret anymore!