mysql_get_host_info(3)
π mysql_get_host_info π
okay so bestie, welcome to the MariaDB Connector/C corner of the manual, this is the mysql_get_host_info(3) page and it is short and sweet and I am obsessed with it actually π
β¨ NAME β¨
mysql_get_host_info β it hands you back host information. that's it. that's the whole job. no cap. π
πΈ SYNOPSIS πΈ
#include <mysql.h>
const char * mysql_get_host_info(MYSQL * mysql);
look at her. two lines. iconic. π¦
π DESCRIPTION π
so like, this function tells you what kind of connection you're working with on this specific connection β and yes, it includes the server host name in there too. π
it gives you back a string. and if the connection is not valid? you get NULL. that's the vibe check failing fr fr. π
π PARAMETER π
mysqlβ a connection identifier, bestie. and not just any random one, it has to be one that was previously allocated bymysql_init(3)and then connected bymysql_real_connect(3). don't be handing me a fake one, she will know. π
β RETURN VALUE β
returns a string describing host information β or NULL if the connection is not valid. simple. clean. slay. π
π«Ά SEE ALSO π«Ά
tiny note from me to you: this whole page is literally four sections long, so if you read it all you have officially read 100% of the documentation. main character energy. go off. π
and that's a wrap on Version 3.4 of mysql_get_host_info(3) from the MariaDB Connector/C gang π tysm for reading bestie, go get that host info, periodt πβ¨π¦
π¦ 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