A console-based Student Management System developed using Java, JDBC, and MySQL. The application allows users to perform CRUD (Create, Read, Update, Delete) operations on student records through a menu-driven interface.
- Add a new student
- View all students
- Search a student by ID
- Update student details
- Delete a student
- Menu-driven console interface
- MySQL database integration using JDBC
- Exception handling for database operations
- Java
- JDBC
- MySQL
- IntelliJ IDEA
StudentManagementSystem/
│
├── src/
│ ├── com.sms.main
│ ├── com.sms.dao
│ ├── com.sms.model
│ └── com.sms.util
│
├── database.sql
├── README.md
└── .gitignore
- Open MySQL Workbench.
- Open the
database.sqlfile. - Execute the script.
- This will create:
- Database:
student - Table:
stu_data
- Database:
Open DBConnection.java and update your database credentials.
private static final String URL = "jdbc:mysql://localhost:3306/student";
private static final String USER = "root";
private static final String PASSWORD = "YOUR_PASSWORD";- Clone the repository.
- Open the project in IntelliJ IDEA.
- Add the MySQL Connector/J JDBC driver.
- Run
database.sqlin MySQL Workbench. - Update the database credentials in
DBConnection.java. - Run
Main.java.
========= Student Management System =========
1. Add Student
2. View Students
3. Search Student
4. Update Student
5. Delete Student
6. Exit
`markdown Last Updated: 2026-08-26 00:12:34 IST
This section is automatically updated daily at 8:30 AM IST by GitHub Actions.
This project demonstrates:
- Object-Oriented Programming (OOP)
- JDBC Connectivity
- CRUD Operations
- MySQL Database Integration
- PreparedStatement
- ResultSet
- Exception Handling
- Modular Java Programming
Ansh Verma