int mysql_shutdown(MYSQL *mysql, enum mysql_enum_shutdown_level shutdown_level)
mysql_shutdown is in work by code-reference.com if you are faster… don't hasitate and add it
no example at the moment