Jump to content

MySQL JDBC Driver in Netbeans

How to add MySQL JDBC Driver to Netbeans correctly?

Everytime i create a new project of Java with Ant and try to add MySQL JDBC Driver, i never find it.

I have installed xampp and mysql from this https://dev.mysql.com/downloads/windows/installer/8.0.html

And when i created a library manually :MySQL JDBC Driver and added MySQL Connector/J into it, it worked but not fully 100%, i mean there were some bugs
 

It may a silly question, but i need help since eveytime i search this on internet and all websites magically have MySQL JDBC Driver in their libraries, and don't even tell how it appears.

Thanks you.

Link to comment
Share on other sites

Link to post
Share on other sites

Download the connector/j archive and extract the contents (should not matter where)

https://dev.mysql.com/downloads/connector/j/

 

In netbeans go to the services tab, expand the database drivers menus

  • if you dont see the mysql connector/j option, right click the drivers menu and click Add...
  • Or, If you see the mysql connector/j option, right click it and select customize...

Click the Add button next to Driver file(s) field, navigate to the folder where you extracted the connector-j.tar.gz archive and select mysql-connector-java.jar.

 

Click Ok. You should now be able to configure your mysql connection

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×