# refresh

mysqli::refresh

mysqli_refresh

Refreshes

ENTITY

# 

ENTITY

ENTITY

<div data-wrapper="1" role="attribute">

\#\[\Deprecated(since: '8.4', message: 'use FLUSH SQL statement instead')\]

</div>

<div data-wrapper="1" role="mysqli">

public

</div>

<div data-wrapper="1" role="mysqli">

bool

</div>

<div data-wrapper="1" role="mysqli">

mysqli::refresh

</div>

<div data-wrapper="1" role="mysqli">

int

</div>

<div data-wrapper="1" role="mysqli">

flags

</div>

ENTITY

<div data-wrapper="1" role="attribute">

\#\[\Deprecated(since: '8.4', message: 'use FLUSH SQL statement instead')\]

</div>

bool

mysqli_refresh

mysqli

mysql

int

flags

Flushes tables or caches, or resets the replication server information.

# 

ENTITY

`flags`  
The options to refresh, using the MYSQLI_REFRESH\_\* constants as documented within the [MySQLi constants](#mysqli.constants) documentation.

See also the official [MySQL Refresh](ENTITY) documentation.

# 

ENTITY

ENTITY if the refresh was a success, otherwise ENTITY

# 

ENTITY

| ENTITY | ENTITY |
|----|----|
| 8.4.0 | Both mysqli::refresh and `mysqli_refresh` are now deprecated. Use `FLUSH` SQL commands instead. |

# 

ENTITY

`mysqli_poll`