mysql_refresh - Man Page

Name

mysql_refresh - flushes information on the server

Synopsis

#include <mysql.h>

int mysql_refresh(MYSQL * mysql, unsigned int options);

Description

Flushes different types of information stored on the server. The bit-masked parameter options specify which kind of information will be flushed.

Parameters

options can be any combination of the following flags:

OptionDescription
REFRESH_GRANTRefresh grant tables.
REFRESH_LOGFlush logs.
REFRESH_TABLESFlush table cache.
REFRESH_HOSTSFlush host cache.
REFRESH_STATUSReset status variables.
REFRESH_THREADSFlush thread cache.
REFRESH_SLAVEReset master server information and restart slaves.
REFRESH_MASTERRemove binary log files.

Notes

  • To combine different values in the options parameter use the OR operator `|'.
  • mysql_reload() is an alias for mysql_refresh().

Return value

Returns zero on success, otherwise non zero.

Info

Version 3.4 MariaDB Connector/C