Skip to content

This project helps learn basics of python, connecting Python to MySQL and automating the repetitive tasks like inserting multiple rows of data. It is more focused to learn MySQL, there are multiple MySQL query questions answered to learn and understand SQL queries better with knowing the functionalities of keys and constraints on the fields.

License

huzefamehidpurwala/Supplier-Python-SQL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Supplier-SQL

Read about this repository here.

Start working with the project

  1. Clone this repository by git clone https://github.com/huzefamehidpurwala/Supplier-Python-SQL.git.

  2. After successfully cloning the repository change directory by cd Supplier-Python-SQL.

  3. (Optional) Create virtual environment for the project by python3 -m venv Supplier-Python-SQL_venv.

    • If using linux and get any error then install the python3-venv package sudo apt install -y python3.<version>-venv here, <version> should be replaced by the current version of python installed in the system. For ex: sudo apt install -y python3.8-venv. Now re-execute the above command.
  4. (Necessary if used the above 3rd point) Activate the environment:

    • for windows Supplier-Python-SQL_venv\Scripts\activate
    • for linux Supplier-Python-SQL_venv/bin/activate
  5. Install necessary python modules by pip install mysql-connector-python.

  6. Open main.py in editing mode:

    • Windows notepad main.py
    • Linux nano main.py

    Enter the "username" and "password" of the mysql having major rights for editing the tables and databases accordingly and save the file.

  7. Now execute the python script by python main.py.

Now you have your database and tables ready to solve SQL Challenge! ‍🎓

About

This project helps learn basics of python, connecting Python to MySQL and automating the repetitive tasks like inserting multiple rows of data. It is more focused to learn MySQL, there are multiple MySQL query questions answered to learn and understand SQL queries better with knowing the functionalities of keys and constraints on the fields.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages