MariaDB Connector/C is used to connect applications developed in C/C++ to MariaDB and MySQL databases.The client library is LGPL licensed.
9EOR9 Workaround for CONC-363:
If the server sends status SERVER_STATUS_CURSOR_EXISTS
we need to check if stmt->flags was set to CURSOR_TYPE_READ_ONLY.
If not we just ignore the server status and continue processing result sets
without sending COM_FETCH command to the server.
Latest commit cfd3406 Sep 19, 2018

MariaDB Connector/C

Windows Build

Linux Build

MariaDB Connector/C is used to connect applications developed in C/C++ to MariaDB (and MySQL) databases.

Prior to version 2.1 the name for the library was MariaDB Client library for C. This code is based on the LGPL libmysql client library from MySQL 3.23 and PHP's mysqlnd extension.

This product includes PHP software, freely available from


Parts of MariaDB Connector/C are derived from PHP's mysqlnd extension and the original LGPL MySQL client library for MySQL 3.23. The rest of the code is written by developers at MariaDB Corporation Ab.


License (LGPL version 2.1)

GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

For licensing questions, see the Licensing FAQ.


If you want to be part of this development effort, you can discuss this at


  • Oleksandr Byelkin
  • Sergei Golubchik
  • Andrey Hristov
  • Kristian Nielsen
  • Lawrenty Novitsky
  • Georg Richter
  • Vladislav Vaintroub

and others

Source code

Source code can be obtained from the MariaDB Connector/C Github repository


Bugs are filed in the MariaDB Bugs Database.

To report a bug you'll need to signup for an account at Before you file a bug make sure that the bug is not already filed under MariaDB Connector/C Bugs.


Documentation of MariaDB Connector/C can be found in Wiki