Automic VaultAutomic Vault

brew

使用 Homebrew, apk, dnf, Nix, pacman, zypper 安装 mariadb-connector-c

查看 mariadb-connector-c 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install mariadb-connector-c

local Homebrew formula metadata

Linux

Alpine Linux apk已验证 · 92%
sudo apk add mariadb-connector-c

Alpine Linux edge package indexes · mariadb-connector-c · 来源: dl-cdn.alpinelinux.org

Fedora dnf已验证 · 92%
sudo dnf install mariadb-connector-c

Fedora Rawhide package metadata · mariadb-connector-c · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#mariadb-connector-c

nixpkgs package indexes · mariadb-connector-c · 来源: raw.githubusercontent.com

Arch Linux pacman已验证 · 92%
sudo pacman -S mariadb-libs

Arch Linux sync databases · mariadb-libs · 来源: geo.mirror.pkgbuild.com

openSUSE zypper已验证 · 92%
sudo zypper install libmariadb-devel

openSUSE Tumbleweed package metadata · libmariadb-devel · 来源: download.opensuse.org

概览

软件包摘要

MariaDB database connector for C applications

命令和别名

  • mysql_config

历史

项目历史与用法

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.

时间线

  • 2015: Connector/C 2.2.1 was documented as a stable GA release of the MariaDB Client Library for C.
  • 2016: Connector/C 3.0.0 appeared as an alpha of the renamed MariaDB Connector/C.
  • 2016: Connector/C 2.3.0 was a stable GA release of the client library.
  • 2017: Connector/C 3.0.2 reached stable GA status.
  • 2019: Debian 10 shipped MariaDB 10.3 with MariaDB Connector/C 3.0 and libmariadb3.
  • 2026: MariaDB Connector/C 3.4.9 release notes document the continuing stable 3.4 series.

Related projects

  • MariaDB Server is the database server most closely associated with Connector/C.
  • MySQL-compatible applications and language bindings often use Connector/C through libmariadb or mysql_config-compatible discovery.
  • MariaDB Connector/J, Connector/ODBC, and Connector/C++ are sibling connector projects for other client APIs.

来源

安全态势

尚未找到受保护工具覆盖

没有找到 mariadb-connector-c 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 2 个运行时依赖。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

Configuration and credential file locations

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.

Configuration files

Config paths the tool may read or write during local use.

Unix
/etc/my.cnf/etc/mysql/my.cnf$MARIADB_HOME/my.cnf$MYSQL_HOME/my.cnf~/.my.cnf
Windows
System 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

Credential files

Credential-bearing paths to review before unattended agent runs.

Unix
/etc/my.cnf/etc/mysql/my.cnf$MARIADB_HOME/my.cnf$MYSQL_HOME/my.cnf~/.my.cnf
Windows
System 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_configcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本3.4.9
管理器更新时间2026-06-11
本地数据OK
上游not checked
检测到的最新版本未检测到

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
Pulseupdated
依赖openssl@3, zstd
构建依赖cmake
macOS 提供的库curl, krb5
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namemariadb-connector-c
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyyes
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

mariadb-connector-c

nix profile install nixpkgs#mariadb-connector-c
  • normalized package name match
  • 匹配方式:Mariadb Connector C
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: mariadb-connector-c from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
apk95%

mariadb-connector-c 3.4.6-r0

The MariaDB Native Client library (C driver)

https://mariadb.org/

sudo apk add mariadb-connector-c
  • License: LGPL-2.1-or-later
  • Architecture: x86_64
  • Source Package: mariadb-connector-c
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Mariadb Connector C
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: mariadb-connector-c from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

mariadb-connector-c-dev 3.4.6-r0

The MariaDB Native Client library (C driver) (development files)

https://mariadb.org/

sudo apk add mariadb-connector-c-dev
  • License: LGPL-2.1-or-later
  • Architecture: x86_64
  • Source Package: mariadb-connector-c
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Mariadb Connector C
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: mariadb-connector-c-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
dnf95%

mariadb-connector-c 3.4.8-3.fc44

The MariaDB Native Client library (C driver)

http://mariadb.org/

sudo dnf install mariadb-connector-c
  • License: LGPL-2.1-or-later AND PHP-3.0 AND PHP-3.01
  • Category: Unspecified
  • Architecture: i686
  • Source Package: mariadb-connector-c
  • 11 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Mariadb Connector C
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: mariadb-connector-c from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

mariadb-connector-c-config 3.4.8-3.fc44

Configuration files for packages that use /etc/my.cnf as a configuration file

http://mariadb.org/

sudo dnf install mariadb-connector-c-config
  • License: LGPL-2.1-or-later AND PHP-3.0 AND PHP-3.01
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: mariadb-connector-c
  • 2 提供
  • normalized package name match
  • 匹配方式:Mariadb Connector C
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: mariadb-connector-c-config from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

mariadb-connector-c-devel 3.4.8-3.fc44

Development files for mariadb-connector-c

http://mariadb.org/

sudo dnf install mariadb-connector-c-devel
  • License: LGPL-2.1-or-later AND PHP-3.0 AND PHP-3.01
  • Category: Unspecified
  • Architecture: i686
  • Source Package: mariadb-connector-c
  • 7 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Mariadb Connector C
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: mariadb-connector-c-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

mariadb-connector-c-doc 3.4.8-3.fc44

Manual pages documenting API of the libmariadb.so library

http://mariadb.org/

sudo dnf install mariadb-connector-c-doc
  • License: LGPL-2.1-or-later AND PHP-3.0 AND PHP-3.01
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: mariadb-connector-c
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Mariadb Connector C
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: mariadb-connector-c-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

mariadb-connector-c-test 3.4.8-3.fc44

Testsuite files for mariadb-connector-c

http://mariadb.org/

sudo dnf install mariadb-connector-c-test
  • License: LGPL-2.1-or-later AND PHP-3.0 AND PHP-3.01
  • Category: Unspecified
  • Architecture: i686
  • Source Package: mariadb-connector-c
  • 9 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Mariadb Connector C
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: mariadb-connector-c-test from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

mariadb-libs 12.3.2-2

MariaDB libraries

https://mariadb.org/

sudo pacman -S mariadb-libs
  • License: GPL-2.0-only
  • Architecture: x86_64
  • 13 依赖
  • 4 提供
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Mariadb Connector C
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: mariadb-libs from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
pacman95%

mariadb-lts-libs 11.8.8-1

MariaDB libraries (LTS)

https://mariadb.org/

sudo pacman -S mariadb-lts-libs
  • License: GPL-2.0-only
  • Architecture: x86_64
  • 13 依赖
  • 5 提供
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Mariadb Connector C
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: mariadb-lts-libs from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

libmariadb-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-devel
  • License: LGPL-2.1-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: mariadb-connector-c
  • 4 依赖
  • 4 提供
  • normalized package name match
  • 匹配方式:Mariadb Connector C
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: libmariadb-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

libmariadb3 3.4.8-1.1

MariaDB connector in C

https://github.com/MariaDB/mariadb-connector-c

sudo zypper install libmariadb3
  • License: LGPL-2.1-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: mariadb-connector-c
  • 6 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Mariadb Connector C
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: libmariadb3 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

libmariadb3-32bit 3.4.8-1.1

MariaDB connector in C

https://github.com/MariaDB/mariadb-connector-c

sudo zypper install libmariadb3-32bit
  • License: LGPL-2.1-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: mariadb-connector-c
  • 6 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式:Mariadb Connector C
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: libmariadb3-32bit from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

libmariadb_plugins 3.4.8-1.1

Plugins for the MariaDB C Connector

https://github.com/MariaDB/mariadb-connector-c

sudo zypper install libmariadb_plugins
  • License: LGPL-2.1-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: mariadb-connector-c
  • 6 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Mariadb Connector C
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: libmariadb_plugins from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

libmariadbprivate 3.4.8-1.1

Additional internal libraries for the MariaDB C Connector

https://github.com/MariaDB/mariadb-connector-c

sudo zypper install libmariadbprivate
  • License: LGPL-2.1-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: mariadb-connector-c
  • 6 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Mariadb Connector C
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: libmariadbprivate from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Nucleus package database
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment