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...")
except mariadb.Error as 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:
print(f"File: {__file__}\n Database connection error: {e}")
cls.__connection = None