int mysql_refresh(MYSQL *mysql, unsigned int options)
mysql_refresh() is deprecated and is
subject to removal in a future version of MySQL. Instead,
mysql_query() to execute a
This function flushes tables or caches, or resets replication
server information. The connected user must have the
options argument is a bitmask composed
from any combination of the following values. Multiple values
can be OR'ed together to perform multiple operations with a
Refresh the grant tables, like
Flush the logs, like
Flush the table cache, like
Flush the host cache, like
Reset status variables, like
Flush the thread cache.
On a replica server, reset the source server information and restart the replica, like
On a source server, remove the binary log files listed in the binary log index and truncate the index file, like
Commands were executed in an improper order.
The MySQL server has gone away.
The connection to the server was lost during the query.
An unknown error occurred.