mysql_set_server_option(3)
β¨ NAME β¨
okay so bestie, this is mysql_set_server_option(3) from MariaDB Connector/C. It's the function that sets a server option. That's the whole name vibe. π
π SYNOPSIS π
#include <mysql.h>
int mysql_set_server_option(MYSQL * mysql,
enum enum_mysql_set_option);
That's the exact shape, no cap. π«Ά
π¦ DESCRIPTION π¦
Sets server option. Literally that's the description. It's giving short but powerful. π₯
π PARAMETERS π
mysqlβ a mysql handle, which was previously allocated bymysql_init(3)and connected bymysql_real_connect(3). So like, don't just hand it any random pointer, bestie. It needs the handle from those calls. πenum_mysql_set_optionβ server option (see below) Server option, which can be one of the following values:MYSQL_OPTION_MULTI_STATEMENTS_OFFβ Disables multi statement support. It's giving "one statement at a time, we're being careful." πMYSQL_OPTION_MULTI_STATEMENTS_ONβ Enable multi statement support. Yes bestie, it's "Enable," not "Enables" β exact wording, periodt. π₯
π RETURN VALUE π
Returns zero on success, non-zero on failure. So zero is the slay. Non-zero is the "oop." π
π SEE ALSO π
mysql_real_connect(3)β the related call, iykyk. β¨
Version 3.4, and this manual is mysql_set_server_option(3) β mwah π
π¦ 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