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
import mysql.connector | |
db_connection = mysql.connector.connect( | |
host= "localhost", | |
user= "root", | |
passwd= "root" | |
) | |
# creating database_cursor to perform SQL operation | |
db_cursor = db_connection.cursor() | |
# executing cursor with execute method and pass SQL query |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder