mysql_get_server_version(3)
β¨ mysql_get_server_version β¨
okay bestie, welcome to the MariaDB Connector/C corner of the internet π this lil page is all about mysql_get_server_version β she's the one who tells you the numeric version of whatever server you're currently connected to. no cap.
πΈ NAME πΈ
mysql_get_server_version β returns numeric server version π
π¦ SYNOPSIS π¦
#include <mysql.h>
unsigned long mysql_get_server_version(MYSQL * mysql);
π DESCRIPTION π
She returns an integer representing the version of the connected server. that's it, that's the whole vibe. one number, iconic, no extra drama π«Ά
π PARAMETER π
mysqlβ a connection identifier, which was previously allocated bymysql_init(3)and connected bymysql_real_connect(3). so basically, she needs an already-connected bestie to gossip about, not a random stranger you just made up β¨
π NOTES π
The form of the version number is:
VERSION_MAJOR * 10000 + VERSION_MINOR * 100 + VERSION_PATCH
so yeah, it's all math-pilled β major gets the big multiplier, minor gets the middle one, patch keeps it cute and small. iykyk π
π RETURN VALUE π
The version number of the connected server β like, literally the whole point.
π SEE ALSO π
mysql_get_server_info(3)β the sister function, also a baddie π§
Version 3.4 β and that's the tea, bestie π΅β¨ this was mysql_get_server_version(3) from the MariaDB Connector/C manual, version 3.4, and she ate, no crumbs left. go call her, go get that version number, slay π
ππ¦
π¦ 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