1mysql_error(3)                MariaDB Connector/C               mysql_error(3)
2
3
4
5   Name
6       mysql_error  - returns the last error message for the most recent func‐
7       tion call
8
9   Synopsis
10              #include <mysql.h>
11
12              const char * mysql_error(MYSQL * mysql);
13
14   Description
15       Returns the last error message for the most recent function  call  that
16       can succeed or fail.  An empty string means no error occurred.
17
18   Parameter
19       • mysql  is  a connection identifier, which was previously allocated by
20         mysql_init(3) and connected by mysql_real_connect(3).
21
22   Notes
23       • Client error codes are listed in errmsg.h header file,  server  error
24         codes  are  listed in mysqld_error.h header file of the server source
25         distribution.
26
27       • Client error messages can be obtained by calling mariadb_get_infov(3)
28         and passing the parameter MARIADB_CLIENT_ERRORS
29
30   See also
31mysql_errno(3)
32
33mysql_sqlstate(3)
34
35
36
37Version 3.2.2                                                   mysql_error(3)
Impressum