JDBC Tutorial part 1/3 – Database connections

Опубликовано: 29 Декабрь 2021
на канале: MariaDB
18,340
57

In this video, Alejandro Duarte explains how to open a connection from a Java program to an SQL database using a JDBC driver and how to safely close the connection even in error conditions. JDBC stands for Java Database Connectivity and it's the API used internally by persistence frameworks such as JPA, Hibernate, MyBatis, and jOOQ.

►Watch part 2 (running SQL queries):    • JDBC Tutorial part 2/3 – Running SQL ...  
►Read the tutorial: https://dzone.com/articles/jdbc-tutor...
►Source code: https://github.com/mariadb-developers...

0:00 JDBC
0:52 Creating a new empty Maven project
1:40 Installing MariaDB ® using Brew
2:40 Checking the current database user
3:29 Checking the server port
3:44 Setting a password
4:18 Configuring IntelliJ IDEA Ultimate
5:51 Creating a new database
7:30 Adding a JDBC driver
8:48 Opening a database connection
12:45 Closing a database connection
13:35 Closing connections on errors

►Follow Alejandro Duarte on Twitter:   / alejandro_du  
►Follow MariaDB on Twitter:   / mariadb  
►Subscribe to the MariaDB channel:    / mariadb  
►More Java videos:    • Java on MariaDB  

#Java #Databases #MariaDB #SQL

MariaDB is making a big impact on the world. Whether you’re checking your bank account, buying a coffee, shopping online, making a phone call, listening to music, taking out a loan, or ordering takeout–MariaDB is the backbone of applications used every day. Companies small and large, including 75% of the Fortune 500 run MariaDB, touching the lives of billions of people. With massive reach through Linux distributions, enterprise deployments, and public clouds, MariaDB is uniquely positioned as the leading database for modern application development.

Explore MariaDB: https://mariadb.com
Learn about SkySQL: https://mariadb.com/products/skysql
Check out the MariaDB DeveloperHub: https://mariadb.com/developers/
Get in touch with MariaDB experts via Slack: https://mariadb-community.slack.com/


Смотрите видео JDBC Tutorial part 1/3 – Database connections онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь MariaDB 29 Декабрь 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 18,34 раз и оно понравилось 5 людям.