For the complete documentation index, see llms.txt. This page is also available as Markdown.

mysql_errno

mysql_errno returns the numeric error code from the most recent MariaDB Connector/C function call, or zero if no error occurred.

Syntax

unsigned int mysql_errno(MYSQL * mysql);

Parameter

Description

Returns the last error code for the most recent function call that can succeed or fail. Zero means no error occurred.

Client error messages are listed in errmsg.h header file, server error messages are listed in mysqld_error.h header file of the server source distribution.

See Also

spinner

Last updated

Was this helpful?