int mysql_dump_debug_info(MYSQL * mysql);
mysql
- a mysql handle, which was previously allocated by mysql_init() or mysql_real_connect().
This function is designed to be executed by an user with the SUPER privilege and is used to dump server status information into the log for the MariaDB Server relating to the connection.
Returns zero on success, nonzero if an error occurred.
mysql_debug_end()