From ddcae7f797094af08c58ff1a9b1e3b6a61379e88 Mon Sep 17 00:00:00 2001 From: Sascha Date: Mon, 15 Aug 2022 10:23:20 +0200 Subject: [PATCH 1/2] new run --- bandwidth.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 bandwidth.py diff --git a/bandwidth.py b/bandwidth.py old mode 100644 new mode 100755 From 1e40fd5a37990dbde415e6c33b1f645dd51ff4c3 Mon Sep 17 00:00:00 2001 From: Sascha Date: Mon, 15 Aug 2022 17:43:46 +0200 Subject: [PATCH 2/2] add port in sql connection --- bandwidth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bandwidth.py b/bandwidth.py index dd49bb9..7f3c72a 100755 --- a/bandwidth.py +++ b/bandwidth.py @@ -8,7 +8,7 @@ def Average(lst): # mariadb mariadbConnection = mysql.connector.connect( - host="server0", user="root", password="lungretter1", database="bandwidth") + host="server0", port="3306", user="root", password="lungretter1", database="bandwidth") mariadbCursor = mariadbConnection.cursor() mariadbCursor.execute("SELECT times, ping, download, upload FROM speedtest") mariadbResult = mariadbCursor.fetchall()