int mysql_dump_debug_info(MYSQL *mysql)
Instructs the server to write debugging information to the error
log. The connected user must have the
SUPER
privilege.
Zero for success. Nonzero if an error occurred.
Commands were executed in an improper order.
The MySQL server has gone away.
The connection to the server was lost during the query.
An unknown error occurred.