In this project, an attempt has been made to receive and store users' emails and passwords in the mysql database with python
This program is produced in a file that you can see in the repository:
In the menu below, we have put a list of contents for you.
for using this program, you must have mysql DataBase on your system and download mysql-connctor-python module.
for guide to install and download mysql DataBase on your system you can Click Here!.
so Enter below command in your Terminal or Command Promt (cmd):
pip install mysql-connector-python
Another Point:
- for using this program you must change your "DataBase_name" , "User_name, "Password" with your information in line 45.
after all of this points, you can run the program and can see the "Enter your Email: " then see "Enter your password: " in terminal. (like picture one)
after you entered the email and password, the information saved in database and you can access them by mysql database.(like picture two)
It use two module:
and including three function:
this is a module for using regex in python programs. This module is used for the use of MySQL capabilities in Python. This function is used to check the validity of an email based on the formatting we provide with our Regex. In this function, we will notify the user several messages to enter their email and password, in which case the email is sent to the Valid_email function to review the validity. In this function we receive the call for the previous email functions and passwords, then save it to the database using the MySQL-Connector module.