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 Sends a shutdown message to the server.
16
17 Parameter
18 • mysql - a mysql handle, which was previously allocated by
19 mysql_init(3) and connected by mysql_real_connect(3).
20
21 • mysql_enum_shutdown_level - currently only one shutdown level, SHUT‐
22 DOWN_DEFAULT is supported.
23
24 Notes
25 • To shutdown the database server, the user for the current connection
26 must have SHUTDOWN privileges.
27
28 Return value
29 Returns zero on success, non-zero on failure.
30
31 See also
32 • mysql_kill(3)
33
34
35
36Version 3.2.2 mysql_shutdown(3)