Skip to content

This project is part of my Meta Database Engineer Professional Certificate. The lab demonstrates how to create a new database and tables in MySQL directly from Python using the MySQL Connector/Python API.

Notifications You must be signed in to change notification settings

Garnix123/creating_tables_mysql_python_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ—„๏ธ Creating Database Tables with MySQL & Python API

Python
MySQL
Jupyter


๐Ÿ“Œ Project Overview

This project is part of my Meta Database Engineer Professional Certificate.
The lab demonstrates how to create a new database and tables in MySQL directly from Python using the MySQL Connector/Python API.

๐Ÿ‘‰ Business relevance:

  • Modern data analysts and engineers often need to automate schema creation for ETL pipelines, BI systems, or cloud data warehouses.
  • This workflow shows how to set up and structure databases in code โ€” ensuring repeatability, scalability, and automation.

๐Ÿ—‚๏ธ Database Context

  • Database created: little_lemon
  • Tables created in this project:
    • Bookings
    • Customers
    • Orders

Each table has primary keys, constraints, and is ready for relational joins.


๐Ÿ› ๏ธ Tech Stack

  • Python (Jupyter Notebook)
  • MySQL Connector/Python (mysql.connector)
  • MySQL 8.0

๐Ÿ“ˆ Key Learnings

  • How to establish a Pythonโ€“MySQL connection with mysql.connector.
  • How to create databases and tables programmatically.
  • Importance of constraints (PRIMARY KEY, AUTO_INCREMENT).
  • Ensuring reproducibility of database design via scripts instead of manual SQL.

About

This project is part of my Meta Database Engineer Professional Certificate. The lab demonstrates how to create a new database and tables in MySQL directly from Python using the MySQL Connector/Python API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published