mysql_refresh — flush server information
int mysql_refresh(MYSQL * mysql,
unsigned int options);The mysql_refresh() flushes different types of information stored on server side. The bit-masked parameter options specifies which kind of information will be flushed.
mysqlA mysql handle, which was previously allocated by mysql_init() or mysql_real_connect().
optionsA bit masked composed integer which can be one or the combination of the following values:
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.
REFRESH_READ_LOCKtodo!!!
REFRESH_FAST