1mariadb_reconnect(3)          MariaDB Connector/C         mariadb_reconnect(3)
2
3
4
5   Name
6       mariadb_reconnect - reconnects to a server
7
8   Synopsis
9              #include <mysql.h>
10
11              my_bool  mariadb_reconnect(MYSQL * mysql)
12
13   Description
14       mariadb_reconnect()  tries to reconnect to a server in case the connec‐
15       tion died due to timeout or other errors.  It uses the same credentials
16       which were specified in mysql_real_connect(3).
17
18   Return value
19       The function will return 0 on sucess, a non zero value on error
20
21       Note: The function will return an error, if the option MYSQL_OPT_RECON‐
22       NECT wasn’t set before.
23
24   History
25       mariadb_reconnect() was added in MariaDB Connector/C 3.0
26
27   See also
28mysql_real_connect(3)
29
30mysql_optionsv(3)
31
32
33
34Version 3.3.1                                             mariadb_reconnect(3)
Impressum