<mysql.connector.connection.MySQLConnection object at 0x0000020A06A31F70> code example
Example: connect python to mysql
import mysql.connector
mydb = mysql.connector.connect(
host="localhost",
user="yourusername",
password="yourpassword",
port = 8888, #for Mamp users
database='whatever db you want'
)
print(mydb)