Name

mysql_dump_debug_info —

Synopsis

int mysql_dump_debug_info(MYSQL *mysql)

This function causes the database server to enter debugging information about the current connection into its logs. You must have Process privilege in the current connection to use this function. The return value is 0 if the operation succeeded and nonzero if there was an error.

Example

result = mysql_dump_debug_info(&mysql);
/* The server's logs should now contain information about this connection. 
   If something went wrong so that this is not the case, 'result' will have
   a false value.*/

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.