Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
File that connects to the MySQL database
from mysql.connector import (connection)
db_connection = connection.MySQLConnection(host='127.0.0.1', user='root', password='', database='bd')
db_connection.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment