La tabella accounts del Performance Schema

Spiegazione

Ogni account che si connette al server viene registrato nella tabella account, insieme al numero delle connessioni totale e attuale.

Le dimensioni della tabella vengono determinate all'avvio dalla variabile performance_schema_accounts_size. Se è impostata a 0, le statistiche sugli account sono disabilitate.

ColonnaSpiegazione
USERIl nome utente usato dal client per connettersi, NULL per i thread interni.
HOSTIl nome host del client, NULL per i thread interni.
CURRENT_CONNECTIONSLe connessioni attive di questo account.
TOTAL_CONNECTIONSLe connessioni totali di questo account.

Esempio

SELECT * FROM performance_schema.accounts;
+------------------+-----------+---------------------+-------------------+
| USER             | HOST      | CURRENT_CONNECTIONS | TOTAL_CONNECTIONS |
+------------------+-----------+---------------------+-------------------+
| root             | localhost |                   1 |                 2 |
| NULL             | NULL      |                  20 |                23 |
| debian-sys-maint | localhost |                   0 |                35 |
+------------------+-----------+---------------------+-------------------+

Commenti

Sto caricando i commenti......
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.