From the course: Learning NetBeans

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Connect to a database

Connect to a database

From the course: Learning NetBeans

Start my 1-month free trial

Connect to a database

- [Instructor] Let's turn our attention to see how we can now manage databases within NetBeans. Now, the first entry in the Services window in NetBeans, that is on a fresh installation with no additional plug-ins installed, is the Databases explorer right over here. And as you can see, I have the node expanded. And this allows us to see what databases we have registered along with the database drivers that are installed within NetBeans, and any connections that we have made to the databases. NetBeans provides native support for Java databases and MySQL. Connections to other databases can be made by JDBC connections. If I try to expand the Java Database node, there is nothing there. On the Drivers, you can see what we have available. However, I'd like to go ahead and create a sample database. And if we right-click on the Java Database, we can choose Create Sample Database. I will call this MySampleDB. Now, if I wanted to, I can right-click on this line here for JDBC, where it's…

Contents