Created
September 4, 2019 15:49
-
-
Save mayararysia/d17012205917fabac9e77b87447f9c1e to your computer and use it in GitHub Desktop.
File that connects to the MySQL database
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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