mysql_shutdown(3)

πŸ“¦
version 13.0.2 Β· 4 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, debian trixie, fedora 43, fedora 44, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ 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 by mysql_init(3) and connected by mysql_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 SHUTDOWN privileges. 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