Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
2.0.0-rc
-
None
-
3.13
Description
If no host was specified the default should be localhost.Also localhost shouldn't map to 127.0.0.1 - it means a unix_socket should be used (default = /tmp/mysql.sock)
>>> import mariadb |
>>> conn=mariadb.connect()
|
Traceback (most recent call last):
|
File "<python-input-1>", line 1, in <module> |
conn=mariadb.connect()
|
File "/home/georg/work/venv13/lib/python3.13/site-packages/mariadb/__init__.py", line 169, in connect |
connection = connectionclass(*args, **kwargs)
|
File "/home/georg/work/venv13/lib/python3.13/site-packages/mariadb/sync_connection.py", line 53, in __init__ |
self._client.connect()
|
~~~~~~~~~~~~~~~~~~~~^^
|
File "/home/georg/work/venv13/lib/python3.13/site-packages/mariadb/impl/client/sync_client.py", line 355, in connect |
raise last_exception
|
File "/home/georg/work/venv13/lib/python3.13/site-packages/mariadb/impl/client/sync_client.py", line 338, in connect |
self._perform_handshake()
|
~~~~~~~~~~~~~~~~~~~~~~~^^
|
File "/home/georg/work/venv13/lib/python3.13/site-packages/mariadb/impl/client/sync_client.py", line 412, in _perform_handshake |
self._handle_authentication(self.read_payload())
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
|
File "/home/georg/work/venv13/lib/python3.13/site-packages/mariadb/impl/client/sync_client.py", line 494, in _handle_authentication |
raise _decode_error_packet(packet, self.context).toError(self.exception_factory)
|
|