From 2def96fcf668a84de06bf493c41d8b9f0be1f5d1 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Fri, 10 Jul 2020 04:06:38 +0100 Subject: [PATCH] Updating Database Connection With SuperUser --- db.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/db.py b/db.py index 751aa613..bf6db5a1 100644 --- a/db.py +++ b/db.py @@ -10,9 +10,9 @@ def connection(): # Connect to MariaDB Platform try: conn = mariadb.connect( - user="root", + user="hamothy", password=password, - host="localhost", + host="173.208.202.20", port=3306, database="enso" ) @@ -23,3 +23,6 @@ def connection(): sys.exit(1) return conn + + +connection()