PHP mysqli_refresh() function is used to refreshes tables or caches, or resets the replication server information.
Syntax
int mysqli_refresh(connection, options);
Parameter | Description |
---|---|
connection : | Required parameter. The MySQL connection to be used |
options : | Required parameter. The options to refresh. Can be one the following:
|
Return Values : | Returns TRUE if the refresh was a success, otherwise FALSE |
<?php $con = mysqli_connect("localhost","user","password","db"); if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } mysqli_refresh($con, MYSQLI_REFRESH_LOG); mysqli_close($con); ?>