Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP mysqli_refresh() Function

PHP mysqli_refresh() Function

PHP mysqli Reference Manual PHP mysqli Reference Manual


Definition and Usage

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


Syntax

mysqli_refresh(

connection,options

)

;

Parameters 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
  • MYSQLI_REFRESH_LOG - Refresh the logs
  • MYSQLI_REFRESH_TABLES - Refresh the table cache
  • MYSQLI_REFRESH_HOSTS - Refresh the host cache
  • MYSQLI_REFRESH_STATUS - Reset the status variables
  • MYSQLI_REFRESH_THREADS - Refresh the thread cache
  • MYSQLI_REFRESH_SLAVE - Reset the master server information and restart the slave
  • MYSQLI_REFRESH_MASTER - Remove the binary log files from the binary log index and truncate the index file.
  • |

    Technical Details

    Return Value: Returns TRUE on success, FALSE on failure.
    PHP Version: 5.3+

    PHP mysqli Reference Manual PHP mysqli Reference Manual