Name

mysql_debug( )

Synopsis

void mysql_debug(const char *debug)

Use this to set debugging if the client was compiled with debugging.

...
mysql_debug("d:t:o,filename");
...

The filename given could include the path to the logfile where debugging information is to be written.

Get MySQL in a Nutshell 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.