macOS
brew install mariadb-connector-clocal Homebrew formula metadata
安装
brew install mariadb-connector-clocal Homebrew formula metadata
sudo apk add mariadb-connector-cAlpine Linux edge package indexes · mariadb-connector-c · 来源: dl-cdn.alpinelinux.org
sudo dnf install mariadb-connector-cFedora Rawhide package metadata · mariadb-connector-c · 来源: dl.fedoraproject.org
nix profile install nixpkgs#mariadb-connector-cnixpkgs package indexes · mariadb-connector-c · 来源: raw.githubusercontent.com
sudo pacman -S mariadb-libsArch Linux sync databases · mariadb-libs · 来源: geo.mirror.pkgbuild.com
sudo zypper install libmariadb-developenSUSE Tumbleweed package metadata · libmariadb-devel · 来源: download.opensuse.org
概览
MariaDB database connector for C applications
历史
MariaDB Connector/C is the C client library for applications that connect to MariaDB and MySQL-compatible servers. In package-manager terms it is the small but important client-side piece that many native programs need at build time or runtime, especially when replacing Oracle MySQL client libraries with MariaDB's LGPL client stack.
The connector descends from the MariaDB Client Library for C and was later branded as MariaDB Connector/C. MariaDB's own release notes describe Connector/C 3.0.0 in January 2016 as an alpha of the renamed client library, while the 2.3 series remained a stable GA line in 2016. The project is maintained separately from the server tree at the official MariaDB Corporation GitHub repository.
MariaDB documents Connector/C as the library used to connect C and C++ applications to MariaDB and MySQL databases, under the LGPLv2.1 license. That licensing and source split made it attractive to distributions and build systems that wanted a client library without depending on a full server installation.
Connector/C spread through operating-system packaging because many database-aware programs need headers, mariadb_config or mysql_config compatibility, and libmariadb at compile or link time. MariaDB's Debian 10 announcement notes that Debian shipped MariaDB 10.3 with Connector/C 3.0 and that packages formerly depending on legacy MySQL/MariaDB client libraries moved to libmariadb3 from LGPL-licensed Connector/C.
For Homebrew users, the separate mariadb-connector-c formula is useful when a package needs the C client library and build metadata but not a local MariaDB server. It also provides mysql_config compatibility for software that still expects MySQL-flavored discovery commands.
Typical use is indirect: install the package, let build tools find mariadb_config or mysql_config, and link software against libmariadb. Application developers can also use Connector/C's option-file support so clients read the same my.cnf-style defaults as other MariaDB and MySQL command-line clients.
Because Connector/C can read default or custom option files, package users should treat my.cnf locations as both configuration and possible credential locations when client option groups contain user, password, TLS key, or passphrase settings.
Package maintainers care about Connector/C because it decouples client-library packaging from the database server and preserves MySQL C API compatibility names. It is the package that often fixes builds of database clients, language bindings, monitoring tools, and older autotools projects looking for mysql_config.
The Homebrew formula is especially convenient on developer workstations: it gives native builds a MariaDB/MySQL-compatible client library without starting a daemon or pulling in server administration tools.
安全态势
没有找到 mariadb-connector-c 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
/etc/my.cnf/etc/mysql/my.cnf$MARIADB_HOME/my.cnf$MYSQL_HOME/my.cnf~/.my.cnfSystem Windows Directory\my.iniSystem Windows Directory\my.cnfWindows Directory\my.iniWindows Directory\my.cnfC:\my.iniC:\my.cnfinstalldir\my.iniinstalldir\my.cnfinstalldir\data\my.iniinstalldir\data\my.cnf%MARIADB_HOME%\my.ini%MARIADB_HOME%\my.cnf%MYSQL_HOME%\my.ini%MYSQL_HOME%\my.cnfCredential-bearing paths to review before unattended agent runs.
/etc/my.cnf/etc/mysql/my.cnf$MARIADB_HOME/my.cnf$MYSQL_HOME/my.cnf~/.my.cnfSystem Windows Directory\my.iniSystem Windows Directory\my.cnfWindows Directory\my.iniWindows Directory\my.cnfC:\my.iniC:\my.cnfinstalldir\my.iniinstalldir\my.cnfinstalldir\data\my.iniinstalldir\data\my.cnf%MARIADB_HOME%\my.ini%MARIADB_HOME%\my.cnf%MYSQL_HOME%\my.ini%MYSQL_HOME%\my.cnf可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
mysql_config | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://mariadb.org/download/?tab=connector&prod=connector-c
安装元数据
| 软件包键 | brew:mariadb-connector-c |
|---|---|
| 版本 | 3.4.9 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/mariadb-connector-c |
| 主页 | https://mariadb.org/download/?tab=connector&prod=connector-c |
| 仓库 | https://github.com/mariadb-corporation/mariadb-connector-c |
| 上游文档 | https://mariadb.com/docs/connectors/mariadb-connector-c |
| 许可证 | LGPL-2.1-or-later |
| 源码归档 | https://archive.mariadb.org/connector-c-3.4.9/mariadb-connector-c-3.4.9-src.tar.gz |
| 最后更新 | 2026-06-11T10:47:01Z |
| Pulse | updated |
| 依赖 | openssl@3, zstd |
| 构建依赖 | cmake |
| macOS 提供的库 | curl, krb5 |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | mariadb-connector-c |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | yes |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
mariadb-connector-c
nix profile install nixpkgs#mariadb-connector-cmariadb-connector-c 3.4.6-r0
The MariaDB Native Client library (C driver)
sudo apk add mariadb-connector-cmariadb-connector-c-dev 3.4.6-r0
The MariaDB Native Client library (C driver) (development files)
sudo apk add mariadb-connector-c-devmariadb-connector-c 3.4.8-3.fc44
The MariaDB Native Client library (C driver)
sudo dnf install mariadb-connector-cmariadb-connector-c-config 3.4.8-3.fc44
Configuration files for packages that use /etc/my.cnf as a configuration file
sudo dnf install mariadb-connector-c-configmariadb-connector-c-devel 3.4.8-3.fc44
Development files for mariadb-connector-c
sudo dnf install mariadb-connector-c-develmariadb-connector-c-doc 3.4.8-3.fc44
Manual pages documenting API of the libmariadb.so library
sudo dnf install mariadb-connector-c-docmariadb-connector-c-test 3.4.8-3.fc44
Testsuite files for mariadb-connector-c
sudo dnf install mariadb-connector-c-testmariadb-libs 12.3.2-2
MariaDB libraries
sudo pacman -S mariadb-libsmariadb-lts-libs 11.8.8-1
MariaDB libraries (LTS)
sudo pacman -S mariadb-lts-libslibmariadb-devel 3.4.8-1.1
Development files for the MariaDB Connector C API
https://github.com/MariaDB/mariadb-connector-c
sudo zypper install libmariadb-devellibmariadb3 3.4.8-1.1
MariaDB connector in C
https://github.com/MariaDB/mariadb-connector-c
sudo zypper install libmariadb3libmariadb3-32bit 3.4.8-1.1
MariaDB connector in C
https://github.com/MariaDB/mariadb-connector-c
sudo zypper install libmariadb3-32bitlibmariadb_plugins 3.4.8-1.1
Plugins for the MariaDB C Connector
https://github.com/MariaDB/mariadb-connector-c
sudo zypper install libmariadb_pluginslibmariadbprivate 3.4.8-1.1
Additional internal libraries for the MariaDB C Connector
https://github.com/MariaDB/mariadb-connector-c
sudo zypper install libmariadbprivate来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.