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 = {
|
SQL = {
|
||||||
'DB': 'osticket',
|
'DB': 'osticket',
|
||||||
'Host': 'osticket.1201.com',
|
'Host': 'osticket.1201.com',
|
||||||
'Port': '3306',
|
'Port': 3306,
|
||||||
'User': 'wizardkit',
|
'User': 'wizardkit',
|
||||||
'Pass': 'U9bJnF9eamVkfsVw',
|
'Pass': 'U9bJnF9eamVkfsVw',
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ import logging
|
||||||
import socket
|
import socket
|
||||||
import time
|
import time
|
||||||
|
|
||||||
import mysql.connector as mariadb
|
import mariadb
|
||||||
|
|
||||||
from wk import std
|
from wk import std
|
||||||
from wk.cfg.osticket import SQL, STAFF, TEST_STATIONS
|
from wk.cfg.osticket import SQL, STAFF, TEST_STATIONS
|
||||||
|
|
@ -59,7 +59,7 @@ class osTicket(): # pylint: disable=invalid-name
|
||||||
database=SQL['DB'],
|
database=SQL['DB'],
|
||||||
user=SQL['User'],
|
user=SQL['User'],
|
||||||
password=SQL['Pass'],
|
password=SQL['Pass'],
|
||||||
connection_timeout=5,
|
connect_timeout=5,
|
||||||
)
|
)
|
||||||
self.db_cursor = self.db_connection.cursor()
|
self.db_cursor = self.db_connection.cursor()
|
||||||
except mariadb.errors.Error:
|
except mariadb.errors.Error:
|
||||||
|
|
|
||||||
|
|
@ -3,10 +3,12 @@ ddrescueview-bin
|
||||||
hardinfo-gtk3
|
hardinfo-gtk3
|
||||||
hfsprogs
|
hfsprogs
|
||||||
iwgtk
|
iwgtk
|
||||||
|
mariadb-connector-c
|
||||||
memtest86-efi
|
memtest86-efi
|
||||||
mprime
|
mprime
|
||||||
openbox-patched
|
openbox-patched
|
||||||
pipes.sh
|
pipes.sh
|
||||||
|
python-mariadb-connector
|
||||||
smartmontools-svn
|
smartmontools-svn
|
||||||
testdisk-wip
|
testdisk-wip
|
||||||
ttf-font-awesome-4
|
ttf-font-awesome-4
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,7 @@ pv
|
||||||
python
|
python
|
||||||
python-docopt
|
python-docopt
|
||||||
python-gnuplot
|
python-gnuplot
|
||||||
python-mysql-connector
|
python-mariadb-connector
|
||||||
python-psutil
|
python-psutil
|
||||||
python-pytz
|
python-pytz
|
||||||
python-requests
|
python-requests
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue