Welcome to the MySQL Using Python repository! This repository contains Python scripts demonstrating various tasks related to MySQL databases.
Task1 - Table with constraints.py
: Python script demonstrating the creation of a table with constraints in a MySQL database.Task2 - 1-to-1 Relationship.py
: Python script demonstrating a 1-to-1 relationship between two tables in a MySQL database.Task2 - 1-to-Many Relationship.py
: Python script demonstrating a 1-to-many relationship between two tables in a MySQL database.Task2 - Many-to-Many Relationship.py
: Python script demonstrating a many-to-many relationship between two tables in a MySQL database.
To run these scripts locally, make sure you have Python installed on your machine along with the mysql
library.
You can install the mysql
library using pip:
pip install mysql-connector-python
-
Clone the repository:
git clone https://github.com/AhmadT198/MySQL_Using_Python.git
-
Navigate to the project directory:
cd MySQL_Using_Python
-
Run the desired Python script:
python Task1 - Table with constraints.py
Replace
Task1 - Table with constraints.py
with the name of the script you want to run.
This project is licensed under the terms of the MIT License.
If you have any questions, concerns, or need support, please contact us.