mysql_error
- Provided by: libmariadb-dev (Version: 1:10.11.14-0ubuntu0.24.04.1)
- Source: mariadb
- Report a bug
mysql_error - returns the last error message for the most recent function call
#include <mysql.h>
const char * mysql_error(MYSQL * mysql);
Returns the last error message for the most recent function call that can succeed or fail. An empty string means no error occurred.