Connect Java with Mysql Database - Complete Explanation with Example | Java JDBC Connectivity

preview_player
Показать описание
How to Connect Java Application with MySQL Database 8.x.
First we will add mysql-java-connector jar in Eclipse.

We follow 5 Steps while Connecting with Java Application with Database -

1. Register the Driver Class
2. Create Connection
3. Create Statement
4. Execute Queries
5. Close Connection

#jdbc #mysql #java
Рекомендации по теме
Комментарии
Автор

For anyone who sees error on import java.sql :

Delete module-info.java in your workplace/heirarchy for java.sql.anything to work

ReggieMisFit