aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Using the MySql database 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 "Using the MySql database" Watch "Using the MySql database" New topic
Author

Using the MySql database

Matthew Tilic
Ranch Hand

Joined: Apr 07, 2011
Posts: 41

Hey,

I have now got Netbeans 7 and have previously on my work machine gone to services, right clicked databases "New Connection" and then chosen finish and BOOM I have a database I can send to, open and close which is all very nice.

Now at home I have no list of databases and when I right click "New Connection" I get this fabulous notification

cannot establish a connection to jdbc:mysql://localhost:3306/mysql using com.mysql.jdbc.Driver (Communications link failure  The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.)

Just perfect

THanks
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18902
    
    8

Matthew Tilic wrote:Just perfect


I guess that, despite your apparent total approval of the situation, you really have a question?

It appears that somebody configured your work machine with links to some MySQL server somewhere. You're going to have to do the same thing to your home machine.

(And this isn't anything to do with Java programming. You haven't even got there yet. You're still trying to configure your Netbeans environment. So let me move this post to the forum which is about Netbeans.)
Matthew Tilic
Ranch Hand

Joined: Apr 07, 2011
Posts: 41

Yer. I have looked online and can not find anything concrete on configuring it
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18902
    
    8

I'm surprised. When I used "configure netbeans databases" for my google query, the second result I got back was Connecting to a MySQL Database.
Phillip Ankerson
Greenhorn

Joined: Aug 10, 2011
Posts: 27

You should be able to find out how to do that fairly easy. Connecting to a MySQL Database
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Using the MySql database