The mysqli_refresh() function refreshes tables or caches, or resets replication server information.
mysqli_refresh( connection, options ) ;
parameter | describe |
---|---|
connection | Required. Specifies the MySQL connection to use. |
options | Options to refresh. Can be one or more of the following (separated by OR): MYSQLI_REFRESH_GRANT - Refresh the grant table MYSQLI_REFRESH_LOG - refresh record MYSQLI_REFRESH_TABLES - Refresh table cache MYSQLI_REFRESH_HOSTS - Refresh hosts cache MYSQLI_REFRESH_STATUS - reset status variables MYSQLI_REFRESH_THREADS - Refresh thread cache MYSQLI_REFRESH_SLAVE - Reset the master server information and restart the slave server MYSQLI_REFRESH_MASTER - Removes binary log files from the binary log index and truncates the index file. |
Return value: | Returns TRUE if successful and FALSE if failed. |
---|---|
PHP version: | 5.3+ |