intmysql_shutdown(MYSQL *mysql, enum mysql_enum_shutdown_level shutdown_level)mysql_shutdown() is deprecated and will be removed in a future version of MySQL. Instead, usemysql_real_query() ormysql_query() to execute aSHUTDOWN statement.
Asks the database server to shut down. The connected user must have theSHUTDOWN privilege. MySQL servers support only one type of shutdown;shutdown_level must be equal toSHUTDOWN_DEFAULT. Dynamically linked executables that have been compiled with older versions of thelibmysqlclient headers and callmysql_shutdown() must be used with the oldlibmysqlclient dynamic library.
An alternative tomysql_shutdown() is to use theSHUTDOWN SQL statement.
The shutdown process is described inThe Server Shutdown Process.
Commands were executed in an improper order.
The MySQL server has gone away.
The connection to the server was lost during the query.
An unknown error occurred.