githubEdit

Install MariaDB Connector/C++

Install MariaDB Connector/C++ on Linux using RPM, DEB, or binary tarball packages, or on Windows using the MSI installer, with MariaDB Connector/C as a prerequisite.

circle-info

Browse & download the latest MariaDB connectors

Download Connectors

Requirement

MariaDB Connector/C++ has dependencies. You must install MariaDB Connector/C to use it.

MariaDB Connector/C++
MariaDB Connector/C

1.1

3.3.3 or later

1.0

3.1.1 or later

For additional information, see "MariaDB Connector/C++ Release Notes".

Linux Installation (RPM and DEB Packages)

To install MariaDB Connector/C++ on Linux using RPM or DEB packages:

  1. Ensure that the MariaDB Connector/C dependency is installed first.

  2. Ensure the Product dropdown reads C++ connector.

  3. In the Version dropdown, select the desired version.

  4. Under the OS dropdown:

    • Select a Debian-based distribution to download a .deb package (e.g., Debian 12 Bookworm (64-bit x86) deb)

    • Select an RPM-based distribution (RHEL, Rocky, or AlmaLinux) to download a .rpm package (e.g., RHEL 9 / Alma 9 / Rocky 9 (64-bit x86) rpm).

  5. Click Download to save the appropriate package to your local system.

Install on RPM-based systems (RHEL and Rocky)

Navigate to the directory where the file was downloaded and run:

Install on Debian/Ubuntu

Navigate to the directory where the file was downloaded and run:

Linux Installation (Binary Tarball)

To install MariaDB Connector/C++ on Linux:

  1. Ensure the "Product" dropdown reads "C++ connector."

  2. In the "Version" dropdown, select the version you want to download.

  3. In the "OS" dropdown, select the Linux distribution you want to use.

  4. Click the "Download" button to download the binary tarball.

  5. Extract the tarball:

  6. Change into the relevant directory:

  7. Install the directories for the header files:

  8. Install the header files:

  9. Install the directories for the shared libraries:

  • On CentOS, RHEL, Rocky Linux:

  • On Debian, Ubuntu:

  1. Install the shared libraries:

  • On CentOS, RHEL, Rocky Linux:

  • On Debian, Ubuntu:

Windows Installation (MSI)

To install MariaDB Connector/C++ on Windows:

  1. MariaDB Connector/C dependency will be installed when Connector/C++ is installed.

  2. Ensure the "Product" dropdown reads "C++ connector."

  3. In the "Version" dropdown, select the version you want to download.

  4. 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.

  5. Click the "Download" button to download the MSI package.

  6. Run the MSI package and click "Next" to start the Setup Wizard.

  7. On the second screen, click the license agreement checkbox, then click "Next."

  8. On the third screen, click "Typical."

  9. On the fourth screen, click "Install."

  10. Click "Finish."

  11. Add the directory path that contains the mariadbcpp LIB file (for example, C:\Program Files\MariaDB\MariaDB C++ Connector 64-bit) to your PATH environment variable.

This page is: Copyright © 2025 MariaDB. All rights reserved.

spinner

Last updated

Was this helpful?