import mysql.connector
from mysql.connector import connect, Error
try:
with connect(
host='localhost',
user=SQLUSER,
password=SQLPASS,
database=SQLBASE
) as connection:
print(connection)
except Error as e:
print(e)