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:
parent
7834de599a
commit
a97bcf8caa
4 changed files with 6 additions and 4 deletions
|
|
@ -4,7 +4,7 @@
|
|||
SQL = {
|
||||
'DB': 'osticket',
|
||||
'Host': 'osticket.1201.com',
|
||||
'Port': '3306',
|
||||
'Port': 3306,
|
||||
'User': 'wizardkit',
|
||||
'Pass': 'U9bJnF9eamVkfsVw',
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ pv
|
|||
python
|
||||
python-docopt
|
||||
python-gnuplot
|
||||
python-mysql-connector
|
||||
python-mariadb-connector
|
||||
python-psutil
|
||||
python-pytz
|
||||
python-requests
|
||||
|
|
|
|||
Loading…
Reference in a new issue