import mysql.connector
def get_connection():
conn = mysql.connector.connect(
host="127.0.0.1",
user="root",
password="xyz",
database="your_database"
)
return conn