From 1e40fd5a37990dbde415e6c33b1f645dd51ff4c3 Mon Sep 17 00:00:00 2001 From: Sascha Date: Mon, 15 Aug 2022 17:43:46 +0200 Subject: [PATCH] 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()