MySQL 5.6 C API Developer Guide
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.
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.