JDBC Database Connection Setup with MYSQL DB | Step by Step Code in Java and Explained very well

Опубликовано: 23 Июль 2020
на канале: Corporate Trainer Harish
33
3

JDBC Setup,
JDBC Architecture,
MYSQL JDBC Setup with JAR Files,
MYSQL Java Code Setup for CRUD Operations,
Database Java CRUD Operations with JDBC,

Java Database Connectivity with MySQL

To connect Java application with the MySQL database, we need to follow 5 following steps.

In this example we are using MySql as the database. So we need to know following informations for the mysql database:

Driver class: The driver class for the mysql database is com.mysql.jdbc.Driver.

Connection URL: The connection URL for the mysql database is jdbc:mysql://localhost:3306/sonoo where jdbc is the API, mysql is the database, localhost is the server name on which mysql is running, we may also use IP address, 3306 is the port number and sonoo is the database name.
We may use any database, in such case, we need to replace the sonoo with our database name.

Username: The default username for the mysql database is root.
Password: It is the password given by the user at the time of installing the mysql database. In this example, we are going to use root as the password.


contact: hapemmas@gmail.com


На этой странице сайта вы можете посмотреть видео онлайн JDBC Database Connection Setup with MYSQL DB | Step by Step Code in Java and Explained very well длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Corporate Trainer Harish 23 Июль 2020, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 33 раз и оно понравилось 3 зрителям. Приятного просмотра!