jQuery in Action, 3rd edition
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
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: 170
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: http://netbeans.org/kb/docs/ide/mysql.html. 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: 3130

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.

K. Tsang JavaRanch SCJP5 SCJD OCPJP7 OCPWCD5 OCPBCD5 OCPWSD5 OCMJEA5 part 1 part 2/3
I agree. Here's the link: http://aspose.com/file-tools
subject: Issues with registering MySQL to Netbeans
It's not a secret anymore!