import mysql.connector
from mysql.connector import errorcode


cnx = mysql.connector.connect(user='root', password='',
                              host='127.0.0.1',
                              database='test',
                              )

cnx.close()
print("done")
