See [this page on W3schools](https://www.w3schools.com/python/python_mysql_getstarted.asp). Summary: to install ```bash python -m pip install mysql-connector-python ``` and then to use ```python import mysql.connector mydb = mysql.connector.connect( host="localhost", user="yourusername", password="yourpassword" ) print(mydb) ```