---
title: "Discussion on \"Steps to connect with Database\" | Hashnode"
description: "Discussion on \"Steps to connect with Database\". In this blog, we can directly connect with the database and perform the query execution\nSteps:\n\nLoad the Driver:\n Class.forName(\"com.mysql.jdbc.Driver\")\n\nCreate a Connection:\n Connection con = DriverManager.getConnection(\"jdbc:mysql://127.0.0.1:3306/..."
url: "https://hashnode.com/posts/steps-to-connect-with-database/66cf5d380bfb65c7035f6482"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Steps to connect with Database](https://javaspringboot.hashnode.dev/steps-to-connect-with-database?utm_source=hashnode&utm_medium=feed)

In this blog, we can directly connect with the database and perform the query execution Steps: Load the Driver: Class.forName("com.mysql.jdbc.Driver") Create a Connection: Connection con = DriverManager.getConnection("jdbc:mysql://127.0.0.1:3306/...

Aug 28, 2024 · 1 min read · javaspringboot.hashnode.dev  
Read the article

-   [#connectivity](https://hashnode.com/tag/connectivity)
-   [#database-connection](https://hashnode.com/tag/database-connection)

## Written by

[Aniket Gudgal](https://hashnode.com/@aniket5867)

@aniket5867 · Pune

  
[View profile](https://hashnode.com/@aniket5867)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
