MariaDB Connector/C++ has dependencies. You must install MariaDB Connector/C to use it.
1.1
3.3.3 or later
For additional information, see "".
To install MariaDB Connector/C++ on Linux:
.
Go to the
Ensure the "Product" dropdown reads "C++ connector."
In the "Version" dropdown, select the version you want to download.
On CentOS, RHEL, Rocky Linux:
On Debian, Ubuntu:
Install the shared libraries:
On CentOS, RHEL, Rocky Linux:
On Debian, Ubuntu:
To install MariaDB Connector/C++ on Windows:
MariaDB Connector/C dependency will be installed when Connector/C++ is installed.
Go to the
Ensure the "Product" dropdown reads "C++ connector."
In the "Version" dropdown, select the version you want to download.
This page is: Copyright © 2025 MariaDB. All rights reserved.
Click the "Download" button to download the binary tarball.
Extract the tarball:
Change into the relevant directory:
Install the directories for the header files:
Install the header files:
Install the directories for the shared libraries:
In the "OS" dropdown, select either "MS Windows (64-bit)" or "MS Windows (32-bit)", depending on whether you need a 64-bit or 32-bit connector.
Click the "Download" button to download the MSI package.
Run the MSI package and click "Next" to start the Setup Wizard.
On the second screen, click the license agreement checkbox, then click "Next."
On the third screen, click "Typical."
On the fourth screen, click "Install."
Click "Finish."
Add the directory path that contains the mariadbcpp LIB file (example "C:\Program Files\MariaDB\MariaDB C++ Connector 64-bit") to PATH environment variable.
1.0
3.1.1 or later
$ tar -xvzf mariadb-connector-cpp-*.tar.gz$ cd mariadb-connector-cpp-*/$ sudo install -d /usr/include/mariadb/conncpp
$ sudo install -d /usr/include/mariadb/conncpp/compat$ sudo install include/mariadb/* /usr/include/mariadb/
$ sudo install include/mariadb/conncpp/* /usr/include/mariadb/conncpp
$ sudo install include/mariadb/conncpp/compat/* /usr/include/mariadb/conncpp/compat$ sudo install -d /usr/lib64/mariadb
$ sudo install -d /usr/lib64/mariadb/plugin$ sudo install -d /usr/lib/mariadb
$ sudo install -d /usr/lib/mariadb/plugin$ sudo install lib/mariadb/libmariadbcpp.so /usr/lib64
$ sudo install lib/mariadb/plugin/* /usr/lib64/mariadb/plugin$ sudo install lib/mariadb/libmariadbcpp.so /usr/lib
$ sudo install lib/mariadb/plugin/* /usr/lib/mariadb/plugin