Skip to content

Instantly share code, notes, and snippets.

@mayararysia
Created September 4, 2019 15:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mayararysia/d17012205917fabac9e77b87447f9c1e to your computer and use it in GitHub Desktop.
Save mayararysia/d17012205917fabac9e77b87447f9c1e to your computer and use it in GitHub Desktop.
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