import MySQLdb


def connect():
    conn = MySQLdb.connect(host="localhost",
                           user="root",
                           passwd="S18zxi209",
                           db="mysite")

    c = conn.cursor()
    return conn, c
