DEV Community

AquaCat
AquaCat

Posted on

【Java】Notes when you download JDBC driver from MySQL website

*OS...Windows

If you are coding with Java for backend, and want to use database, you need to download "JDBC" driver from MySQL website.

What is JDBC?

JDBC is an API(Application Programming Interface)that allows Java program access to database (such as Oracle, MySQL ,etc.)

What is JDBC driver?

JDBC driver is a collection of classes that includes interfaces (that are defined in JDBC API) and their methods get called when
Java program accesses to database. It makes the program to connect to the database, execute the queries and process the result data.

You need to use the JDBC driver that corresponds to your database. (Each vendor supplies its JDBC driver.)

Download MySQL JDBC driver

1.Go to https://www.mysql.com/products/connector/.
2.Find "JDBC Driver for MySQL (Connector/J)" and click "Download."
3.Select "Platform Independent." (<---IMPORTANT!!)
4.Click "Download" of whatever file you need.
5.Login/sign up in MySQL (if you have not logged in yet).
6.Starts downloading.

*If you select "Windows" on step 3, you will find "mysql-installer-web-community". Looks like you can install JDBC driver ("Connector/J") through it. (I have not tried!!)

Top comments (0)