<gh_stars>1-10
import mysql.connector

def conectar():
    database = mysql.connector.connect(
        host = "localhost",
        user = "root",
        passwd = "",
        database = "master_python",
        port = 3306
    )

    cursor = database.cursor(buffered=True)

    return [database, cursor]
import mysql.connector

def conectar():
    database = mysql.connector.connect(
        host = "localhost",
        user = "root",
        passwd = "",
        database = "master_python",
        port = 3306
    )

    cursor = database.cursor(buffered=True)

    return [database, cursor]