1mysql_shutdown(3) MariaDB Connector/C mysql_shutdown(3)
2
3
4
5 Name
6 mysql_shutdown - Sends shutdown message to server
7
8 Synopsis
9 #include <mysql.h>
10
11 int mysql_shutdown(MYSQL * mysql,
12 enum mysql_enum_shutdown_level);
13
14 Description
15 This function is deprecated. Instead please use SQL SHUTDOWN command.
16
17 Sends a shutdown message to the server.
18
19 Parameter
20 • mysql - a mysql handle, which was previously allocated by
21 mysql_init(3) and connected by mysql_real_connect(3).
22
23 • mysql_enum_shutdown_level - currently only one shutdown level, SHUT‐
24 DOWN_DEFAULT is supported.
25
26 Notes
27 • To shutdown the database server, the user for the current connection
28 must have SHUTDOWN privileges.
29
30 Return value
31 Returns zero on success, non-zero on failure.
32
33 See also
34 • mysql_kill(3)
35
36
37
38Version 3.3.1 mysql_shutdown(3)