mysql_error
mysql_error returns the error message string for the most recent failed MariaDB Connector/C function call, or an empty string if no error occurred.
Last updated
Was this helpful?
mysql_error returns the error message string for the most recent failed MariaDB Connector/C function call, or an empty string if no error occurred.
const char * mysql_error(MYSQL * mysql);mysql - a mysql handle, which was previously allocated by mysql_init() or mysql_real_connect().
Returns the last error message for the most recent function call that can succeed or fail. If no error occurred an empty string is returned.
Client error codes are listed in errmsg.h header file, server error codes are listed in mysqld_error.h header file of the server source distribution.
Client error messages can be obtained by calling mariadb_get_infov() and passing the parameter MARIADB_CLIENT_ERRORS
Last updated
Was this helpful?
Was this helpful?

