int mysql_shutdown(MYSQL * mysql, enum mysql_enum_shutdown_level);
mysql - a mysql handle, which was previously allocated by mysql_init() or mysql_real_connect().
mysql
mysql_enum_shutdown_level - currently only one shutdown level, SHUTDOWN_DEFAULT is supported.
mysql_enum_shutdown_level
SHUTDOWN_DEFAULT
Sends a shutdown message to the server. To shut down the database server, the user for the current connection must have SHUTDOWN privileges.
SHUTDOWN
Returns zero on success, non-zero on failure.
mysql_kill()
Last updated 6 months ago
Was this helpful?