Question #232092

How to connect Java application with and Mysql database using JDBC?


Expert's answer

The following are the steps required to connect Java application to the MySQL database using JDBC

Download and import JDBC packages to the IDE of your choice 
Create a connection to the database.
Write a statement instance to perform  SQL a query.
Execute the statement instance and return a query in form of ResultSet.
Process and manipulate the ResultSet.


LATEST TUTORIALS
APPROVED BY CLIENTS