MariaDB Connector/C supports several Linux distributions and Microsoft Windows.
To install MariaDB Connector/C on Linux using APT, YUM, or ZYpp, you must configure your system to use either the ES Package Repository or the CS Package Repository.
If your system is already configured to use one of these package repositories, you can skip to install MariaDB Connector/C.
Choose a package repository to configure:
MariaDB Connector/C is available from the same package repository as MariaDB Enterprise Server.
To configure the ES package repository:
Install curl.
Install via APT on Debian, Ubuntu:
Install via YUM on CentOS, RHEL, Rocky Linux:
Install via ZYpp on SLES:
Download the utility, validate its checksum, and ensure that its permissions allow it to be executed:
MariaDB Connector/C is available from the same package repository as MariaDB Community Server.
To configure the CS package repository:
Install curl.
Install via APT on Debian, Ubuntu:
Install via YUM on CentOS, RHEL, Rocky Linux:
Install via ZYpp on SLES:
Download the utility, validate its checksum, and ensure that its permissions allow it to be executed:
On supported Linux distributions, MariaDB Connector/C can be installed using APT, YUM, or ZYpp if the system is configured to use the or the .
To install MariaDB Connector/C on CentOS, RHEL, and Rocky Linux, you can use YUM if you have the or configured.
Install MariaDB Connector/C and package dependencies:
To install MariaDB Connector/C on Debian and Ubuntu, you can use APT if you have the or configured.
Install MariaDB Connector/C and package dependencies:
To install MariaDB Connector/C on SLES, you can use ZYpp if you have the or configured.
Install MariaDB Connector/C and package dependencies:
MariaDB Connector/C can be installed on supported Linux distributions via a binary tarball package:
Go to the
Ensure the "Product" dropdown reads "C connector."
In the "Version" dropdown, select the version you want to download.
In the "OS" dropdown, select your Linux distribution.
MariaDB Connector/C can be installed on Microsoft Windows via an MSI package:
Go to the
Ensure the "Product" dropdown reads "C connector."
In the "Version" dropdown, select the version you want to download.
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.
mariadb_es_repo_setup script can be found in the section at the bottom of the page. Subsitute ${checksum} in the example above with the latest checksum.Retrieve your Customer Download Token at Customer Download Token at the MariaDB Customer Portal and substitute your token for CUSTOMER_DOWNLOAD_TOKEN in the following step.
Configure the ES package repository using the mariadb_es_repo_setup utility:
All major releases of ES contain the same version of MariaDB Connector/C.
By default, the utility will configure your system to use the package repository for ES 10.6.
To configure your system to use the ES package repository for a specific major release, use the option.
Install MariaDB Connector/C using the package repository.
mariadb_repo_setup script can be found in the section at the bottom of the page. Subsitute ${checksum} in the example above with the latest checksum.Configure the CS package repository using the mariadb_repo_setup utility:
All major releases of CS contain the same version of MariaDB Connector/C.
By default, the utility will configure your system to use the package repository for CS 10.6.
To configure your system to use the CS package repository for a specific major release, use the option.
Install MariaDB Connector/C using the package repository.
Click on the "Download" button to download the MSI package.
When the MSI package finishes downloading, run it and follow the on-screen instructions.
Package Repository
Description
MariaDB Enterprise Server package repository
Available to customers of MariaDB Corporation
Available for APT, YUM, and ZYpp on supported Linux distributions
Configured with the utility
MariaDB Community Server package repository
Publicly available
Available for APT, YUM, and ZYpp on supported Linux distributions
Configured with the utility
sudo ./mariadb_es_repo_setup --token="CUSTOMER_DOWNLOAD_TOKEN" --apply \
--mariadb-server-version="10.6"sudo ./mariadb_repo_setup \
--mariadb-server-version="mariadb-10.6"sudo apt install curlsudo yum install curlsudo zypper install curl$ curl -LsSO https://dlm.mariadb.com/enterprise-release-helpers/mariadb_es_repo_setup$ echo "${checksum} mariadb_es_repo_setup" \
| sha256sum -c -$ chmod +x mariadb_es_repo_setup$ sudo apt install curl$ sudo yum install curl$ sudo zypper install curlcurl -LsSO https://r.mariadb.com/downloads/mariadb_repo_setupecho "${checksum} mariadb_repo_setup" \
| sha256sum -c -chmod +x mariadb_repo_setupsudo yum install MariaDB-shared MariaDB-develsudo apt install libmariadb3 libmariadb-devsudo zypper install MariaDB-shared MariaDB-develThis page is: Copyright © 2025 MariaDB. All rights reserved.