Skip to content
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

Connection Phase ->Initial Handshake->Client Response Format Mismatch Caused MySQL Handshake Failure #1636

Open
bugsos opened this issue Oct 10, 2024 · 0 comments

Comments

@bugsos
Copy link

bugsos commented Oct 10, 2024

Issue description

During the MySQL connection handshake phase, the format of the client's response did not comply with the server's handshake message requirements, resulting in a handshake failure.

although server handshake packet CLIENT_CONNECT_ATTRS not set,but client still responded with the connection sttributes content.
mysql

Example code

https://github.com/go-sql-driver/mysql/blob/master/packets.go#L264
https://github.com/go-sql-driver/mysql/blob/master/packets.go#L385

Error log

[mysql]  packets.go:37: unexpected EOF
[error] failed to initialize database, got error invalid connection
[error] fortest/mysql.go:57     invalid connection

Configuration

Driver version: v1.8.0

Go version: go1.22.4 linux/amd64

Server version: MySQL 5.6.24

Server OS: CentosOS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant