mariadb-connector-c

MariaDB Connector/C is used to connect applications developed in C/C++ to MariaDB and MySQL databases.

Latest version: 3.4.11

Add to xmake.lua

add_requires("mariadb-connector-c 3.4.11")

Learn how to add and link packages with Xmake →

Information

License
LGPL-2.1
Recipe updated
2026-10-01T09:10:08.000Z

Platforms

  • linux: i386, x86_64, armv7, armv7s, arm64, mips, mips64, mipsel, mips64el, loong64, riscv64, s390x, ppc, ppc64, ppc64el, sparc64
  • bsd: i386, x86_64, arm, arm64, ppc, ppc64, ppc64el, riscv64, sparc64
  • windows: x86, x64, arm, arm64, arm64ec

Options

curl
Enables use of curl. · Type: boolean · Default: true
dyncol
Enables support of dynamic columns. · Type: boolean · Default: true
external_zlib
Enables use of external zlib. · Type: boolean · Default: false
mysqlcompat
Creates libmysql* symbolic links. · Type: boolean · Default: false
ssl
Enables use of TLS/SSL library. · Type: string · Default: openssl · Values: openssl, openssl3, gnutls
unit_tests
Build test suite. · Type: boolean · Default: false

Versions

  • 3.1.13
  • 3.3.4
  • 3.3.9
  • 3.4.7
  • 3.4.8
  • 3.4.9
  • 3.4.11

Dependencies

Install with xrepo

Install the package independently of a project and inspect its available configuration.

install

xrepo install "mariadb-connector-c 3.4.11"

show info

xrepo info "mariadb-connector-c"

Link a library to your target

Declare the requirement, then attach the library to the target that uses it.

xmake.lua

add_requires("mariadb-connector-c 3.4.11")

target("demo")
    set_kind("binary")
    add_files("src/*.cpp")
    add_packages("mariadb-connector-c")

Open a package environment

Open a shell with the environment exported by this package. Use the executable names documented by the package.

enter shell

xrepo env -b "mariadb-connector-c 3.4.11" shell