In this project, I have generated synthetic data to populate a database that I have built in MySQL. My goal is to develop a small working model that demonstrates the process of database creation followed by data entry and retrieval.
In other projects, I use real data to perform sales analysis and inventory management.
data/:scripts/:
- Python 3.x
- Pandas library
- MySQL Server
-
Install Python dependencies:
pip install pandas
-
Generate Data:
Run the
data_generation.pyscript to generate CSV files in thedatadirectory.python scripts/data_generation.py
-
Setup MySQL Database:
- Create a database named
inventorydbin your MySQL server. - Update the file paths in
scripts/create_database.sqlto match your MySQL server'sLOAD DATA INFILEpath. - Execute the SQL script to create tables and load data:
mysql -u [username] -p inventorydb < scripts/create_database.sql - Create a database named