Skip to content

mysql_stat

imshooter edited this page Dec 1, 2026 · 2 revisions

The status line of the server, waiting for the queries sent before it.

native bool:mysql_stat(
    destination[],
    max_len = sizeof (destination),
    MySQL:handle = MYSQL_DEFAULT_HANDLE
);

With open.mp names, from the same include:

native bool:MySQL_GetStatus(
    destination[],
    max_len = sizeof (destination),
    MySQL:handle = MYSQL_DEFAULT_HANDLE
);

Parameters

Parameter Description
destination[] Array for the status.
max_len = sizeof (destination) Size of the array.
MySQL:handle = MYSQL_DEFAULT_HANDLE The handle.

Returns

  • true when it was written.
  • false when the handle does not exist, or the server did not answer.

Home

Guides

Reference

Functions

Connections
Queries
Cache
JSON cells
ORM
Queries built in pieces
Prepared statements
Batches
Transactions
Passwords
Callbacks

Clone this wiki locally