Skip to content

Fix searchd connection with newer MariaDB Connector/C - #483

Merged
jsuto merged 1 commit into
jsuto:masterfrom
midasi:disable-ssl-verify
Jul 25, 2026
Merged

Fix searchd connection with newer MariaDB Connector/C#483
jsuto merged 1 commit into
jsuto:masterfrom
midasi:disable-ssl-verify

Conversation

@midasi

@midasi midasi commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Newer versions of MariaDB Connector/C enable server certificate verification by default. Since Sphinx/Manticore searchd (MySQL protocol on port 9306) does not support TLS, mysql_real_connect() fails with:

TLS/SSL error: SSL is required, but the server does not support it

Disable MYSQL_OPT_SSL_VERIFY_SERVER_CERT for the searchd connection before calling mysql_real_connect().

This change only affects the Sphinx/searchd connection and does not modify the regular MySQL/MariaDB database connection.

Fixes #474

@midasi
midasi requested a review from jsuto as a code owner July 24, 2026 18:17
@jsuto

jsuto commented Jul 25, 2026

Copy link
Copy Markdown
Owner

Thank you!

@jsuto
jsuto merged commit 6a396c6 into jsuto:master Jul 25, 2026
4 checks passed
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.4.9 docker: MySQL connection fails with SSL error on startup

2 participants