Skip to content

JDBC (Java Database Connectivity) is an API (Application Programming Interface) in Java that provides methods and classes to enable Java applications to interact with databases. It allows Java programs to execute SQL statements and manage connections to a database.

Notifications You must be signed in to change notification settings

LohithKumar01/JDBC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

//Below command will run the mysqlDB with port 3306
docker run --name mysqldb -e MYSQL_ROOT_PASSWORD=admin -p 3306:3306 -d mysql:latest

//Command to check DB is running on port  (windows)
telnet localhost 3306

//Login goto the mysqlDB container.
//bash is a unix command line.
docker exec -it mysqldb bash

//To login to the DB
 mysql -u root -p

 //To create the EmployeeDB
 CREATE DATABASE IF NOT EXISTS EmployeeDB;

 //it will show all DB's running inside mysql
 show databases

About

JDBC (Java Database Connectivity) is an API (Application Programming Interface) in Java that provides methods and classes to enable Java applications to interact with databases. It allows Java programs to execute SQL statements and manage connections to a database.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages