int mysql_refresh(MYSQL *mysql, unsigned int options)


This function flushes tables or caches, or resets replication server information. The connected user must have the RELOAD privilege.

The options argument is a bit mask composed from any combination of the following values. Multiple values can be OR'ed together to perform multiple operations with a single call.

Return Values

Zero for success. Nonzero if an error occurred.