A console-based User Authentication and CRUD application built using Python and MySQL.
This project demonstrates backend fundamentals such as database connectivity, authentication, and CRUD operations.
- User Registration (Create)
- User Login & Authentication
- Update User Details
- Delete User Account
- Menu-driven CLI application
- MySQL Database integration
- Language: Python 3.x
- Database: MySQL
- Connector: mysql-connector-python
.
├── main.py
└── README.md
Database Name: login_page_curd
Table Name: cust_login_details
CREATE TABLE cust_login_details (
cust_id INT AUTO_INCREMENT PRIMARY KEY,
cust_full_name VARCHAR(100),
cust_address VARCHAR(255),
cust_phone_number VARCHAR(15),
cust_username VARCHAR(50) UNIQUE,
cust_password VARCHAR(50)
);- Select an option from the main menu.
- Based on the selection, the system performs one of the following operations:
- Register a new user
- Login using existing credentials
- Update user details
- Delete a user account
- Authentication is mandatory for update and delete operations.
- All database transactions are safely committed or rolled back in case of errors.
-
Username is fetched from the database
-
Password is validated against stored credentials
-
Login succeeds only if credentials match
B.Tech – Electronics & Communication Engineering
Python | MySQL | SAP Security (IAM)