This is a read-only copy of the MariaDB Knowledgebase generated on 2024-11-15. For the latest, interactive version please visit https://mariadb.com/kb/.

mariadb-c-connector for MySQL 8.19

We've been using mariadb-c-connector-2.3.7 for MySQL 5.7. We upgraded MySQL to version 8.19 and the connector no longer works.

1. Which mariadb-c-connector version should we use for MySQL 8.19?

I cross-compliled mariadb-c-connector-3.1.8 and I notice that libmysqlclient.so is no longer produced. Our library needs to link against this file.

2. Could you tell me what I need to do to connect to MySQL 8.19?

Thanks!

Answer Answered by Ian Gilfillan in this comment.

MySQL 8 has a new authentication protocol which was not supported before 3.0.8. See About MariaDB Connector/C.

Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.