mysql_shutdown(3)
β¨ mysql_shutdown β bestie edition β¨
okay so this is mysql_shutdown, a lil function from the MariaDB Connector/C manual (that's the manual name btw, iykyk). it sends a shutdown message to the server. she's giving legacy icon, but also... kinda retired. we'll get to that π
πΈ Name πΈ
mysql_shutdown β sends a shutdown message to the server π«Ά
π Synopsis π
#include <mysql.h>
int mysql_shutdown(MYSQL * mysql,
enum mysql_enum_shutdown_level);
π Description π
π¨ This function is deprecated. Instead please use the SQL SHUTDOWN command. no cap.
She sends a shutdown message to the server. that's the whole vibe. but fr fr, don't be building new stuff on her β the SQL SHUTDOWN command is the main character now π
π¦ Parameter π¦
mysqlβ a mysql handle, which was previously allocated bymysql_init(3)and connected bymysql_real_connect(3). basically your little connection bestie that you already set up πmysql_enum_shutdown_levelβ currently only one shutdown level,SHUTDOWN_DEFAULT, is supported. that's it. that's the only option. periodt.
π Notes π
- To shutdown the database server, the user for the current connection must have
SHUTDOWNprivileges. no privileges, no shutdown, sorry babe π
β Return value β
Returns zero on success, non-zero on failure. so 0 = ate, anything else = it's giving error π
π See also π
Version 3.4 of the MariaDB Connector/C manual, bestie β that's the source + version tea, and it's the last thing on the page, so this is your cute lil sign-off πβ¨ bye, go use the SQL SHUTDOWN command instead, 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