Name
mysql_shutdown —
Synopsis
int mysql_shutdown(MYSQL *mysql)
Shuts down
the MySQL database server. The user must have
Shutdown
privileges on the current connection to
use this function. The function returns 0 if the operation was
successful and nonzero in the case of an error.
Example
if ( mysql_shutdown(&mysql) ) { printf("Server not shut down... Check your permissions...\n"); } else { printf("Server successfully shut down!\n"); }
Get Managing & Using MySQL, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.