int mysql_shutdown(MYSQL *mysql, enum
Asks the database server to shut down. The connected user must
SHUTDOWN privilege. The
shutdown_level argument was added in MySQL
4.1.3. MySQL 4.1 supports only one type of shutdown;
shutdown_level must be equal to
SHUTDOWN_DEFAULT. Additional shutdown levels
are planned to make it possible to choose the desired level.
Dynamically linked executables which have been compiled with
older versions of the
to be used with the old
The shutdown process is described in Section 5.1.9, “The Shutdown Process”.
Zero for success. Nonzero if an error occurred.