Documentation Home
MySQL 5.5 Reference Manual
Related Documentation Download this Manual Excerpts from this Manual mysql_shutdown()

int mysql_shutdown(MYSQL *mysql, enum mysql_enum_shutdown_level shutdown_level)


Asks the database server to shut down. The connected user must have the SHUTDOWN privilege. 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 5.1.12, “The Server Shutdown Process”.

Return Values

Zero for success. Nonzero if an error occurred.


Download this Manual
User Comments
  Posted by Chuck Han on October 8, 2004
This comment applies particularly to building mysql++ under Windows for MySQL v5.0.x. If you get an error that in, the include file config.h cannot be found, simply comment the include line for config.h out.

I have seen other comments that you should replace the include line with:


but, that allows the condition:


to be processed, and that generates the error that SHUTDOWN_DEFAULT is undefined.


Sign Up Login You must be logged in to post a comment.