First install the Mysql connector using pip:
pip install mysql-connector-python
After opening a server, in my case I used wampserver.
Second step is to import the database file registration.sql to phpmyadmin.
Third step is to run the project using:
py main.py