aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-10-09 17:27:31 +0200
committerlonkaars <loek@pipeframe.xyz>2022-10-09 17:27:31 +0200
commit5b2f5fcbd5afc58e6832c4a2f8efa7db83e79877 (patch)
tree612e8ccd866bd6e12c3a1a438f3412ad119e7a2c
parent18e90c8985b3eb5d21417be6bbc2a1e150a2a4cf (diff)
move to mariadb for better compatibility
-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