Back to Browse

JDBC Tutorial part 1/3 – Database connections

19.5K views
Dec 30, 2021
15:56

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): https://youtu.be/nWhZl4cMjRw ►Read the tutorial: https://dzone.com/articles/jdbc-tutorial-part-1-connecting-to-a-database ►Source code: https://github.com/mariadb-developers/java-quickstart/tree/main/jdbc/part1 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: https://twitter.com/alejandro_du ►Follow MariaDB on Twitter: https://twitter.com/mariadb ►Subscribe to the MariaDB channel: https://www.youtube.com/mariadb ►More Java videos: https://www.youtube.com/playlist?list=PLlm3ebwe5px-LA8qIqYb5aM4-zl5c1G95 #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/

Download

0 formats

No download links available.

JDBC Tutorial part 1/3 – Database connections | NatokHD