int mysql_shutdown(MYSQL *mysql, enum
Asks the database server to shut down. The connected user must
MySQL servers support only one type of shutdown;
shutdown_level must be equal to
SHUTDOWN_DEFAULT. Dynamically linked
executables which have been compiled with older versions of the
libmysqlclient headers and call
mysql_shutdown() need to be used
with the old
libmysqlclient dynamic library.
The shutdown process is described in Section 6.1.12, “The Server Shutdown Process”.
Zero for success. Nonzero if an error occurred.