Author: Aswanth R
Subject: Computer Science (Code 083)
Educational Use License – see LICENSE file.
Free for educational and evaluation purposes. Commercial use prohibited.
- Edit
connection-test.py– set your MySQL host, user, password. - Run:
python connection-test.py - If you see
✅ Connected successfully!, go to Step 2.
| Error Code | Problem | Fix |
|---|---|---|
| 1045 | Access denied | Check username/password |
| 1049 | Unknown database | Create database or check name |
| 2003 | Cannot connect | Start MySQL/XAMPP |
| 1044 | Access denied to DB | Grant privileges |
Run: python project.py
If that fails, try: py project.py
First run creates database library and table list automatically.
Menu options:
- Issue book
- Show registry
- Add student
- Return book
- Check student status
- Exit
- Master reset (drops database)
PS C:\Users\ASWANTH> python "project cs.py"
All Configs already set !
+---------------------------------------------------------+
| LIBRARY MANAGEMENT SYSTEM |
+---------------------------------------------------------+
|Options : |
+---------------------------------------------------------+
|1.Issue of book. |
|2.Show the registry. |
|3.Add new student. |
|4.Return of book. |
|5.Check the status of a student. |
|6.Close the system. |
|7.Master Reset. |
+---------------------------------------------------------+
|Enter the option index number :1
+---------------------------------------------------------+
Enter the name of new student:Aswanth
Enter the book name:Wings of Fire
Book Wings of Fire issued to Aswanth successfully!
+---------------------------------------------------------+
|Options : |
+---------------------------------------------------------+
|1.Issue of book. |
|2.Show the registry. |
|3.Add new student. |
|4.Return of book. |
|5.Check the status of a student. |
|6.Close the system. |
|7.Master Reset. |
+---------------------------------------------------------+
|Enter the option index number :2
+---------------------------------------------------------+
| Library Statistics |
+---------------------------------------------------------+
| Total Registered Students: 1
| Books Currently Issued: 1
+---------------------------------------------------------+
|Options : |
+---------------------------------------------------------+
|1.Issue of book. |
|2.Show the registry. |
|3.Add new student. |
|4.Return of book. |
|5.Check the status of a student. |
|6.Close the system. |
|7.Master Reset. |
+---------------------------------------------------------+
|Enter the option index number :3
+---------------------------------------------------------+
Enter the name of new student:Abhinav
Student Abhinav is sucessfully added.
+---------------------------------------------------------+
|Options : |
+---------------------------------------------------------+
|1.Issue of book. |
|2.Show the registry. |
|3.Add new student. |
|4.Return of book. |
|5.Check the status of a student. |
|6.Close the system. |
|7.Master Reset. |
+---------------------------------------------------------+
|Enter the option index number :4
+---------------------------------------------------------+
Enter the name of new student:Aswanth
Student Aswanth has retured the book. Status Updated !
+---------------------------------------------------------+
|Options : |
+---------------------------------------------------------+
|1.Issue of book. |
|2.Show the registry. |
|3.Add new student. |
|4.Return of book. |
|5.Check the status of a student. |
|6.Close the system. |
|7.Master Reset. |
+---------------------------------------------------------+
|Enter the option index number :5
+---------------------------------------------------------+
Enter the name of new student:Aswanth
The student Aswanth has already returned the book.
+---------------------------------------------------------+
|Options : |
+---------------------------------------------------------+
|1.Issue of book. |
|2.Show the registry. |
|3.Add new student. |
|4.Return of book. |
|5.Check the status of a student. |
|6.Close the system. |
|7.Master Reset. |
+---------------------------------------------------------+
|Enter the option index number :6
+---------------------------------------------------------+
| Thank You using our program :) |
+---------------------------------------------------------+