How to use:
- make sure ypu have python in your windows
- download initialDB.py into a folder
- download https://fdc.nal.usda.gov/fdc-datasets/FoodData_Central_csv_2021-04-28.zip
- unzip into the same folder with initialDB
- open terminal in the folder
- run- python -m pip install mysql-connector-python
- run - python -m pip install pandas
- install mysql server 8.* on port 3306
- use username: root
- password: root
- install mysql workbench
- open mysql workbench and add mysql connection on local
in the python code we have 2 flags
FLAG100 = 0 -> add all table (may take 40 mins) FLAG100 = 1 -> add only 100 first rows
FLAGDEl = 0 -> for first run FLAGDEl = 1 -> delete the exisitin tables (for second run)
- run on terminal- python initialDB.py
- wait 40 mins
- check if our schemas exist in mysql workbench