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()