Added connector error 138 - initial packet handshake on Windows
This commit is contained in:
@@ -25,7 +25,9 @@ class DbManager():
|
|||||||
print(f"DbManager Connection (INTERFACE ERROR): {e}..reconnecting...")
|
print(f"DbManager Connection (INTERFACE ERROR): {e}..reconnecting...")
|
||||||
except mariadb.Error as e:
|
except mariadb.Error as e:
|
||||||
if '(110)' in str(e):
|
if '(110)' in str(e):
|
||||||
print(f"File: {__file__}\n Database connection timed out (Check connection parameters or server): {e}")
|
print(f"File: {__file__}\n Database connection timed out (Check connection parameters or server running): {e}")
|
||||||
|
elif '(138)' in str(e):
|
||||||
|
print(f"File: {__file__}\n Database connection timed out (Check connection parameters or server running - initial handshake): {e}")
|
||||||
else:
|
else:
|
||||||
print(f"File: {__file__}\n Database connection error: {e}")
|
print(f"File: {__file__}\n Database connection error: {e}")
|
||||||
cls.__connection = None
|
cls.__connection = None
|
||||||
|
|||||||
2
main.py
2
main.py
@@ -1,4 +1,4 @@
|
|||||||
# # !/home/linuxero/proj/tero/pyqcrm/.qtcreator/venv-3.13.0/bin/python3
|
# # !/home/linuxero/proj/tero/pyqcrm/.qtcreator/venv-3.13.1/bin/python3
|
||||||
import sys
|
import sys
|
||||||
import logging
|
import logging
|
||||||
from PySide6.QtGui import QGuiApplication
|
from PySide6.QtGui import QGuiApplication
|
||||||
|
|||||||
Reference in New Issue
Block a user