mysql\_shutdown(3) MariaDB Connector/C mysql\_shutdown(3)

## [Name](#Name)

mysql\_shutdown - Sends shutdown message to server

## [Synopsis](#Synopsis)

```
#include <mysql.h>
int mysql_shutdown(MYSQL * mysql,


                   enum mysql_enum_shutdown_level);
    
```

## [Description](#Description)

This function is deprecated. Instead please use SQL SHUTDOWN command.

Sends a shutdown message to the server.

## [Parameter](#Parameter)

•

mysql - a mysql handle, which was previously allocated by [**mysql\_init(3)**](/man/enterprise-packages/mariadb-13.0/mysql_init.3) and connected by [**mysql\_real\_connect(3)**](/man/enterprise-packages/mariadb-13.0/mysql_real_connect.3).

•

mysql\_enum\_shutdown\_level - currently only one shutdown level, SHUTDOWN\_DEFAULT is supported.

## [Notes](#Notes)

•

To shutdown the database server, the user for the current connection must have SHUTDOWN privileges.

## [Return value](#Return_value)

Returns zero on success, non-zero on failure.

## [See also](#See_also)

•

[**mysql\_kill(3)**](/man/enterprise-packages/mariadb-13.0/mysql_kill.3)

Version 3.4

---

Document: mysql_shutdown(3) from mariadb-13.0 13.0.2-r3 (Chainguard OS)
