1mysql_refresh(3)              MariaDB Connector/C             mysql_refresh(3)
2
3
4
5   Name
6       mysql_refresh - flushes information on the server
7
8   Synopsis
9              #include <mysql.h>
10
11              int mysql_refresh(MYSQL * mysql, unsigned int options);
12
13   Description
14       Flushes  different  types  of  information  stored  on the server.  The
15       bit-masked parameter options specify which kind of information will  be
16       flushed.
17
18   Parameters
19       • mysql   -   a   mysql  handle,  which  was  previously  allocated  by
20         mysql_init(3) and connected by mysql_real_connect(3).
21
22       • options - a bit masked composed integer.  See below.
23
24       options can be any combinationation of the following flags:
25
26       Option            Description
27       ─────────────────────────────────────────────
28       REFRESH_GRANT     Refresh grant tables.
29       REFRESH_LOG       Flush logs.
30       REFRESH_TABLES    Flush table cache.
31       REFRESH_HOSTS     Flush host cache.
32       REFRESH_STATUS    Reset status variables.
33       REFRESH_THREADS   Flush thread cache.
34       REFRESH_SLAVE     Reset master server infor‐
35                         mation and restart slaves.
36       REFRESH_MASTER    Remove binary log files.
37
38   Notes
39       • To combine different values in the options parameter use the OR oper‐
40         ator `|'.
41
42       • mysql_reload() is an alias for mysql_refresh().
43
44   Return value
45       Returns zero on success, otherwise non zero.
46
47
48
49Version 3.3.1                                                 mysql_refresh(3)
Impressum