Instructs the server to write debugging information to the error log. The connected user must have the SUPER privilege.SUPERSUPER
int mysql_dump_debug_info(MYSQL *mysql)
Zero for success. Nonzero if an error occurred.