Added connector error 138 - initial packet handshake on Windows

This commit is contained in:
2025-01-07 10:49:08 +01:00
parent 6182c275d0
commit e583beecbe
2 changed files with 4 additions and 2 deletions

View File

@@ -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

View File

@@ -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