mysqli::refresh
(PHP 5 >= 5.3.0, PHP 7, PHP 8)
Refreshes
Function-8-4-0
Description
Oop
mysqli::refresh(int $flags): bool
Procedural
mysqli_refresh(mysqli $mysql, int $flags): bool
Flushes tables or caches, or resets the replication server information.
Parameters
flagsThe options to refresh, using the MYSQLI_REFRESH_* constants as documented within the MySQLi constants documentation.
See also the official MySQL Refresh documentation.
Return Values
true if the refresh was a success, otherwise false
Changelog
| Version | Description |
|---|---|
| 8.4.0 | Both mysqli::refresh and mysqli_refresh() are now deprecated. Use FLUSH SQL commands instead. |