An Example of connecting to MySQL using JDBC Driver.
A typical example code of connect to database will look like this
Connection connection = DriverManager.getConnection(url, user, password);
A JDBC driver is a software component enabling a Java application to interact with a database
You can either download the JDBC driver from the database vendor/provider website (But usually they come with the database installation.)
Below are the list of database vendor and their website url.