<gh_stars>1-10
# python -m pip install mysql-connector
import mysql.connector as conn
from mysql.connector import Error


dbConfig = {
    'host' : 'your-host',	
    'database' : 'your-database',
    'user' : 'your-user',	
    'password' : '<PASSWORD>'
}

myconnection = conn.connect(**dbConfig)
mycursor = myconnection.cursor()

#mycursor.execute("your sql;")
# python -m pip install mysql-connector
import mysql.connector as conn
from mysql.connector import Error


dbConfig = {
    'host' : 'your-host',	
    'database' : 'your-database',
    'user' : 'your-user',	
    'password' : '<PASSWORD>'
}

myconnection = conn.connect(**dbConfig)
mycursor = myconnection.cursor()

#mycursor.execute("your sql;")
# python -m pip install mysql-connector #mycursor.execute("your sql;")