Java Connect to MySQL Database Step by Step

Learn to write Java code that connects to a MySQL database, inserts a row to a table and get all rows from that table. Here's what you will learn in this vi...

Java Connect to MySQL Database Step by Step
Code Java
154.1K views • Mar 8, 2020
Java Connect to MySQL Database Step by Step

About this video

Learn to write Java code that connects to a MySQL database, inserts a row to a table and get all rows from that table.

Here's what you will learn in this video:
- Create a database in MySQL server using MySQL Command Line Client and MySQL Workbench
- Use MySQL JDBC driver (Connector/J): download MySQL JDBC driver manually; and use Maven dependency
- Code a Java Project:
+ Connect to MySQL database server
+ Insert a new row to the database
+ Get all rows from the database
+ Close the connection

Required Software Programs:
+ Java Development Kit (JDK)
+ MySQL Database Community Server
+ MySQL Workbench
+ Eclipse IDE

This tutorial is perfect to start database programming with Java, using MySQL as the database.

For text-based tutorial: https://www.codejava.net/java-se/jdbc/connect-to-mysql-database-via-jdbc

#javaprogramming #jdbc #mysql #javatutorial

Tags and Topics

Browse our collection to discover more content in these categories.

Video Information

Views

154.1K

Likes

1.6K

Duration

43:26

Published

Mar 8, 2020

User Reviews

4.4
(30)
Rate:

Related Trending Topics

LIVE TRENDS

Related trending topics. Click any trend to explore more videos.