Python installieren MySQL Connector
pip3 install mysql-connector-python #Python 3
pip install mysql-connector-python
Lazy Dev
pip3 install mysql-connector-python #Python 3
pip install mysql-connector-python
pip install mysql-connector
$> pip install mysql-connector-python
import mysql.connector
mydb = mysql.connector.connect(
host="localhost",
user="yourusername",
password="yourpassword"
)
print(mydb)