From 5e7787d3ec6bd6b262deff66e27bbc098d6dce07 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 23 Nov 2024 19:33:44 +0100 Subject: [PATCH] update --- .../Anleitung-Schnittstelle-Waage.pdf | Bin .../Messungen der Einzelteile.ods | Bin Signalfluss.PNG => doc/Signalfluss.PNG | Bin .../SummeDerNormalverteilungen.pdf | Bin mariadb-test.py | 47 ------------------ 5 files changed, 47 deletions(-) rename Anleitung-Schnittstelle.pdf => doc/Anleitung-Schnittstelle-Waage.pdf (100%) rename Messungen des Einzelteile.ods => doc/Messungen der Einzelteile.ods (100%) rename Signalfluss.PNG => doc/Signalfluss.PNG (100%) rename SummeDerNormalverteilungen.pdf => doc/SummeDerNormalverteilungen.pdf (100%) delete mode 100644 mariadb-test.py diff --git a/Anleitung-Schnittstelle.pdf b/doc/Anleitung-Schnittstelle-Waage.pdf similarity index 100% rename from Anleitung-Schnittstelle.pdf rename to doc/Anleitung-Schnittstelle-Waage.pdf diff --git a/Messungen des Einzelteile.ods b/doc/Messungen der Einzelteile.ods similarity index 100% rename from Messungen des Einzelteile.ods rename to doc/Messungen der Einzelteile.ods diff --git a/Signalfluss.PNG b/doc/Signalfluss.PNG similarity index 100% rename from Signalfluss.PNG rename to doc/Signalfluss.PNG diff --git a/SummeDerNormalverteilungen.pdf b/doc/SummeDerNormalverteilungen.pdf similarity index 100% rename from SummeDerNormalverteilungen.pdf rename to doc/SummeDerNormalverteilungen.pdf diff --git a/mariadb-test.py b/mariadb-test.py deleted file mode 100644 index 5171a04..0000000 --- a/mariadb-test.py +++ /dev/null @@ -1,47 +0,0 @@ -import mariadb -import sys - -# # Database connection parameters -# host = "127.0.0.1" # host = "localhost" # or the IP of the machine if accessed remotely -# port = 3306 -# user = "root" -# password = "my-secret-pw" # Update with your password -# database = "mydatabase" # Replace with your actual database name - -db_config = { - 'user': 'dbUser', - 'password': 'dbPassword', - 'host': '127.0.0.1', # 'host': 'localhost', - 'database': 'projectGeislinger', - 'port': 3306 # Standard port for MariaDB -} - -try: - # Establish a connection - # conn = mariadb.connect( - # user=user, - # password=password, - # host=host, - # port=port, - # database=database - # ) - - conn = mariadb.connect(**db_config) - - print("Connection successful!") - - # Create a cursor object - cur = conn.cursor() - - # Example query - cur.execute("SELECT VERSION()") - result = cur.fetchone() - print(f"MariaDB version: {result[0]}") - -except mariadb.Error as e: - print(f"Error connecting to MariaDB: {e}") - sys.exit(1) - -finally: - if conn: - conn.close()