aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xeindopdracht/applicatie/main.py5
-rw-r--r--eindopdracht/applicatie/requirements.txt2
2 files changed, 3 insertions, 4 deletions
diff --git a/eindopdracht/applicatie/main.py b/eindopdracht/applicatie/main.py
index 2b6a19a..3e73043 100755
--- a/eindopdracht/applicatie/main.py
+++ b/eindopdracht/applicatie/main.py
@@ -3,12 +3,11 @@
import os
import sys
import json
-from mysql.connector import MySQLConnection, Error
-import mysql.connector
+import mariadb
from PyQt6.QtGui import QPixmap
from PyQt6.QtWidgets import QApplication, QDialog, QComboBox, QLabel, QPlainTextEdit, QRadioButton, QHBoxLayout, QVBoxLayout
-db = mysql.connector.connect(host="localhost", user=os.getlogin(), database="mysql")
+db = mariadb.connect(host="localhost", user=os.getlogin(), database="mysql")
cursor = db.cursor(buffered=True)
def get_car_brands():
diff --git a/eindopdracht/applicatie/requirements.txt b/eindopdracht/applicatie/requirements.txt
index ad25676..5ec570b 100644
--- a/eindopdracht/applicatie/requirements.txt
+++ b/eindopdracht/applicatie/requirements.txt
@@ -3,8 +3,8 @@ dill==0.3.5.1
isort==5.10.1
jedi==0.18.1
lazy-object-proxy==1.7.1
+mariadb==1.1.4
mccabe==0.7.0
-mysql-connector-python==8.0.30
parso==0.8.3
platformdirs==2.5.2
protobuf==3.20.1