-
Notifications
You must be signed in to change notification settings - Fork 332
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial handshake problem #351
Comments
I'm not seeing this exception when running the tests against the |
I just use Wireshark to capture the packets. I noticed the following package using the MySQL protocol with the info |
Yes, the malformed packet does sound like the problem (and it would appear that Wireshark's protocol analyser also identifies there is a problem). Do you have a direct connection to your MariaDB server, or is there some some of proxy / load balancer / etc. in between? |
Even with the malformed packet I still get the message (when following the TCP stream in Wireshark):
The database is really behind something, I think a proxy. I just asked the system administrator for details. I will post his answer when he replies. Thank you for your help so far :) |
I just got a response: |
I just found this in the archived docs:
I'll update the connector to not require a null-terminator. |
Fixed in 0.28.2. |
Awesome it works! Thank you very much. |
When connecting to my 10.0.31-MariaDB database, I get an exception during the initial handshake.
The problem occurs while reading the
AuthPluginName
. TheFormatException
Read past end of buffer looking for NUL.
is thrown in theMySql.Data.ByteArrayReader.ReadNullTerminatedByteString()
method. Even though theAuthPluginName
should bemysql_native_password
(see the provided byte buffer below).m_offset=71
,m_maxOffset=92
and the buffer (m_buffer
) isI understand that
index == m_maxOffset
istrue
and therefore the exception is thrown.When removing the following two lines from the
ReadNullTerminatedByteString
method, the connection can be established without any problems:I obviously don't want to remove those lines for production. Can someone help me out?
The text was updated successfully, but these errors were encountered: