From 5b2f5fcbd5afc58e6832c4a2f8efa7db83e79877 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Sun, 9 Oct 2022 17:27:31 +0200 Subject: move to mariadb for better compatibility --- eindopdracht/applicatie/main.py | 5 ++--- eindopdracht/applicatie/requirements.txt | 2 +- 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 -- cgit v1.2.3