School Management System using C++ & MySQL
A simple C++ console-based application that connects to a MySQL database to manage student records. This project demonstrates the integration of C++ with MySQL using the MySQL C API.
- Connects to MySQL database (
school) - Inserts student data into a
studenttable - Accepts inputs for:
- College ID
- Name
- Birth Date (YYYY-MM-DD)
- Grade
- Loop-based input for adding multiple records
- Basic error handling and feedback
- C++
- MySQL
- MySQL C API (
mysql.h,mysqld_error.h)
Before running the project, create the following MySQL database and table:
CREATE DATABASE school;
USE school;
CREATE TABLE student (
College_ID INT PRIMARY KEY,
Name VARCHAR(50),
BirthDate DATE,
Grade FLOAT
);