Python MySQL

MySQL Get Started

Introduction to MySQL with Python

MySQL Get Started

MySQL is a relational database management system. Python can be used in database applications.

Install MySQL Connector

pip install mysql-connector-python

Test MySQL Connection

import mysql.connector

mydb = mysql.connector.connect(
    host="localhost",
    user="yourusername",
    password="yourpassword"
)

print(mydb)