diff --git a/trial1.py b/trial1.py index 2c4aa54..8002571 100755 --- a/trial1.py +++ b/trial1.py @@ -1,6 +1,13 @@ import tkinter as tki from time import sleep - +import dbm as db_connect + +mydb = mysql.connector.connect( + host="localhost", # Your MySQL host + user="root", # Your MySQL username + password="2025@Redmond", # Your MySQL password + database="trial_1" # The database you want to connect to + ) def on_button_click(): """Function to be called when the button is clicked.""" diff --git a/trial2.py b/trial2.py index 2b99540..f23fe6f 100644 --- a/trial2.py +++ b/trial2.py @@ -6,7 +6,6 @@ ( host='localhost', user='enos', - #port=3306, password='2025@Redmond', database='trial_1' )