MySQL Connection Fails with [SSL: WRONG_VERSION_NUMBER] Despite Using ssl: false parameter #11046
Unanswered
claudio-ayma
asked this question in
Get help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello MindsDB Team,
I am reporting a critical issue with the official
mindsdb/mindsdb:latestDocker image. When attempting to connect to a standard MySQL server that does not use or require SSL, the MySQL handler ignores the officially documented"ssl": falseparameter. It consistently attempts to initiate an SSL handshake, which then fails with an[SSL: WRONG_VERSION_NUMBER]error.This behavior prevents connections to standard, non-SSL MySQL databases from the official MindsDB image.
Steps to Reproduce:
Use any standard MySQL server that is not configured to enforce SSL.
From an official
mindsdb/mindsdb:latestDocker container, execute the following query, as specified in the documentation for disabling SSL:Expected Behavior:
MindsDB should respect the
"ssl": falseparameter and establish a successful, non-encrypted connection to the MySQL database.Actual Behavior:
The command fails with the following exception, indicating an SSL handshake was attempted:
Environment Details:
latest(Tested on 2025-06-10)mindsdb/mindsdb:latest)Exhaustive Troubleshooting Performed:
We have definitively isolated the issue to the MindsDB client-side handler.
"ssl": falsedoes not work as expected."ssl_mode": "DISABLED"and"mysql_driver": "pymysql", all of which resulted in the same error.require_secure_transportisOFF.mysql_native_passwordand does not have aREQUIRE SSLclause.Conclusion:
The official MindsDB Docker image appears to have a bug in its MySQL handler where it disregards the documented
"ssl": falseparameter, making it impossible to connect to non-SSL MySQL databases. This seems to be a client-side issue, not a server or network configuration problem.Thank you for looking into this.
Beta Was this translation helpful? Give feedback.
All reactions