„database_connection.py“ löschen
This commit is contained in:
parent
d65b84316e
commit
b2109fb773
|
@ -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
|
|
Loading…
Reference in New Issue
Block a user