Easy Tutorial
❮ Func Filesystem Fnmatch Func String Strcoll ❯

PHP mysqli_refresh() Function

PHP mysqli Reference Manual


Definition and Usage

The mysqli_refresh() function refreshes tables or caches, or resets replication server information.


Syntax

Parameter Description
connection Required. Specifies the MySQL connection to use.
options The options to refresh. Can be one or more of the following (separated by OR): MYSQLI_REFRESH_GRANT - Refresh the grant tables<br> MYSQLI_REFRESH_LOG - Refresh the logs<br> MYSQLI_REFRESH_TABLES - Refresh the table cache<br> MYSQLI_REFRESH_HOSTS - Refresh the host cache<br> MYSQLI_REFRESH_STATUS - Reset status variables<br> MYSQLI_REFRESH_THREADS - Refresh the thread cache<br> MYSQLI_REFRESH_SLAVE - Reset master server information, restart slave server<br> MYSQLI_REFRESH_MASTER - Remove binary log files listed in the binary log index and truncate the index file.

Technical Details

Return Value: Returns TRUE on success, FALSE on failure.
PHP Version: 5.3+
--- ---
❮ Func Filesystem Fnmatch Func String Strcoll ❯