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

Clear CLIENT_SSL in MySQL Handshake packet #1227

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

avelanarius
Copy link
Member

@avelanarius avelanarius commented Jan 24, 2025

The TcpPassthroughMysqlProcessor does not yet support SSL, so when using a MySQL client you had to explicitly disable SSL on the client side or disable it on the MySQL server.

This change rewrites the initial Handshake packet sent by the MySQL server to inform the client that the server doesn't support SSL. After this change you can connect to MySQL via Quesma without having to manually disable SSL on the client side:

mysql -h localhost -P 13306 -u root -p

instead of

mysql --skip-ssl -h localhost -P 13306 -u root -p

The TcpPassthroughMysqlProcessor does not yet support SSL, so when
using a MySQL client you had to explicitly disable SSL on the client
side or disable it on the MySQL server.

This change rewrites the initial Handshake packet sent by the MySQL
server to inform the client that the server doesn't support SSL. After
this change you can connect to MySQL via Quesma without having to
manually disable SSL on the client side:

```
mysql -h localhost -P 13306 -u root -p
```

instead of

```
mysql --skip-ssl -h localhost -P 13306  -u root -p
```
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

Successfully merging this pull request may close these issues.

1 participant