mysql_get_client_version(3)
β¨ mysql_get_client_version β¨
okay bestie, welcome to the MariaDB Connector/C manual page for mysql_get_client_version(3) π
this one's short and sweet, we love a low-effort slay.
πΈ NAME πΈ
mysql_get_client_version β returns client version number π
π SYNOPSIS π
unsigned long mysql_get_client_version(void);
π¦ DESCRIPTION π¦
so basically this function returns a number representing the client library version π it's giving "one integer that contains multitudes" fr fr.
the value has the format XXYYZZ, and it's built like this:
major version * 10000 + minor version * 100 + patch version
so the number is literally just the version parts smooshed together. iconic math, no cap β¨
π Notes π
- if you want a string containing the client library version instead, use the
mysql_get_client_info(3)function π«Ά different vibe, same energy. - β οΈ big one, pay attention bestie: since
MariaDB Server 10.2.6andMariaDB Connector/C 3.0.1, the client library is bundled with the server package and returns the server package version π so it's not the connector's own version anymore. if you want the client version of the connector, please use the constantMARIADB_PACKAGE_VERSION_IDinstead. periodt.
β RETURN VALUE β
a long integer representing the client version π
that's it, that's the whole thing.
π SEE ALSO π
Version 3.4 of this page, and yeah, it lives under mysql_get_client_version(3) β that's the whole glow-up, mwah π thanks for reading bestie, go call mysql_get_client_info(3) if you need the string version, ily ππ¦π
π¦ where this page comes from
- alpine 3.22: mariadb-doc 11.4.13-r0 Β· GPL-2.0-or-later
- alpine 3.23: mariadb-doc 11.4.13-r0 Β· GPL-2.0-or-later
- alpine 3.24: mariadb-doc 11.8.9-r0 Β· GPL-2.0-only
- arch rolling: mariadb 13.0.2-2 Β· GPL-2.0-only
- arch rolling: mariadb-lts 12.3.3-2 Β· GPL-2.0-only
- centos-stream 10: mariadb-connector-c-doc 3.4.4-2.el10 Β· LGPL-2.1-or-later
- debian trixie: libmariadb-dev 1:11.8.6-0+deb13u1 Β· GPL-2.0-only
- fedora 43: mariadb-connector-c-doc 3.4.5-2.fc43 Β· LGPL-2.1-or-later AND PHP-3.0 AND PHP-3.01
- fedora 43: mariadb-connector-c-doc 3.4.9-2.fc43 Β· LGPL-2.1-or-later AND PHP-3.0 AND PHP-3.01 AND LicenseRef-Fedora-Public-Domain
- fedora 44: mariadb-connector-c-doc 3.4.8-3.fc44 Β· LGPL-2.1-or-later AND PHP-3.0 AND PHP-3.01
- fedora 44: mariadb-connector-c-doc 3.4.9-2.fc44 Β· LGPL-2.1-or-later AND PHP-3.0 AND PHP-3.01 AND LicenseRef-Fedora-Public-Domain
- nixpkgs unstable: mariadb-server 11.8.8
- opensuse-leap 16.0: libmariadb-devel 3.4.9-160000.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: libmariadb-devel 3.4.9-160000.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: libmariadb-devel 3.4.9-160000.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: libmariadb-devel 3.4.9-160000.1.1 Β· LGPL-2.1-or-later
- ubuntu questing: libmariadb-dev 1:11.8.3-1build1
- ubuntu resolute: libmariadb-dev 1:11.8.6-5 Β· GPL-2.0-only
- ubuntu resolute: libmariadb-dev 1:11.8.6-5ubuntu0.1 Β· GPL-2.0-only
- ubuntu stonking: libmariadb-dev 1:11.8.9+ds-4ubuntu2 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms