Switch to python-mariadb-connector

The most recent version of python-mysql-connector wasn't able to connect
to the server due to the utf8 encoding
This commit is contained in:
2Shirt 2022-09-24 18:24:14 -07:00
parent 7834de599a
commit a97bcf8caa
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C
4 changed files with 6 additions and 4 deletions

View file

@ -4,7 +4,7 @@
SQL = {
'DB': 'osticket',
'Host': 'osticket.1201.com',
'Port': '3306',
'Port': 3306,
'User': 'wizardkit',
'Pass': 'U9bJnF9eamVkfsVw',
}

View file

@ -6,7 +6,7 @@ import logging
import socket
import time
import mysql.connector as mariadb
import mariadb
from wk import std
from wk.cfg.osticket import SQL, STAFF, TEST_STATIONS
@ -59,7 +59,7 @@ class osTicket(): # pylint: disable=invalid-name
database=SQL['DB'],
user=SQL['User'],
password=SQL['Pass'],
connection_timeout=5,
connect_timeout=5,
)
self.db_cursor = self.db_connection.cursor()
except mariadb.errors.Error:

View file

@ -3,10 +3,12 @@ ddrescueview-bin
hardinfo-gtk3
hfsprogs
iwgtk
mariadb-connector-c
memtest86-efi
mprime
openbox-patched
pipes.sh
python-mariadb-connector
smartmontools-svn
testdisk-wip
ttf-font-awesome-4

View file

@ -65,7 +65,7 @@ pv
python
python-docopt
python-gnuplot
python-mysql-connector
python-mariadb-connector
python-psutil
python-pytz
python-requests