From b2109fb773db62169d6b14ef395d741b0a27dbb5 Mon Sep 17 00:00:00 2001 From: Marcus Ferl Date: Tue, 22 Mar 2022 23:11:20 +0100 Subject: [PATCH] =?UTF-8?q?=E2=80=9Edatabase=5Fconnection.py=E2=80=9C=20l?= =?UTF-8?q?=C3=B6schen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- database_connection.py | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 database_connection.py diff --git a/database_connection.py b/database_connection.py deleted file mode 100644 index d361475..0000000 --- a/database_connection.py +++ /dev/null @@ -1,15 +0,0 @@ -import mysql.connector - - -# Aufbau der verbindung zum Mysql Server - - -def db_connection(user, password, host, database): - connection = '' - try: - # Verbindung - Eingaben in der config.py bestimmen - connection = mysql.connector.connect(user=user, password=password, host=host, database=database) - except mysql.connector.Error as err: - print('Something went wrong', err) - print('Veruche deinen Mysql Server neu zu starten') - return connection