A console-based Student Management System built using Java, JDBC, and MySQL.
This project performs complete CRUD operations and follows a clean layered architecture using the DAO pattern.
- Add a new student
- View all students
- Update student details
- Delete a student
- MySQL database integration using JDBC
- Clean and modular project structure
- Java (JDK 22)
- MySQL 8
- JDBC
- VS Code
- Git & GitHub
Student Management System │ ├── src │ └── com.sms │ ├── main → Application entry point │ ├── dao → Database operations (CRUD) │ ├── model → Student entity │ └── util → Database connection utility │ ├── lib │ └── mysql-connector-j-9.6.0.jar │ └── README.md
- Install Java (JDK 17+ recommended)
- Install MySQL Server and MySQL Workbench
- Create the database and table using the SQL above
- Update database credentials in
DBConnection.java - Run
MainApp.java - Use the console menu to manage students
- JDBC
- DAO Pattern
- PreparedStatement
- MySQL Database
- OOP (Encapsulation, Abstraction)
- Exception Handling
- Convert to Spring Boot
- Add REST APIs
- Add Login & Authentication
- Web-based UI
Siraj Mohammad
GitHub: https://github.com/Sirajmohammad03
```sql
CREATE DATABASE student_db;
USE student_db;
CREATE TABLE students (
id INT PRIMARY KEY AUTO_INCREMENT,
name VARCHAR(100) NOT NULL,
email VARCHAR(100) UNIQUE,
course VARCHAR(100),
marks DOUBLE
);