Documentation Home
MySQL 5.7 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr) - 35.1Mb
PDF (A4) - 35.2Mb
Man Pages (TGZ) - 256.4Kb
Man Pages (Zip) - 361.2Kb
Info (Gzip) - 3.4Mb
Info (Zip) - 3.4Mb
Excerpts from this Manual

25.12.8.1 The accounts Table

Theaccounts table contains a row for each account that has connected to the MySQL server. For each account, the table counts the current and total number of connections. The table size is autosized at server startup. To set the table size explicitly, set theperformance_schema_accounts_size system variable at server startup. To disable account statistics, set this variable to 0.

Theaccounts table has the following columns. For a description of how the Performance Schema maintains rows in this table, including the effect ofTRUNCATE TABLE, seeSection 25.12.8, “Performance Schema Connection Tables”.

  • USER

    The client user name for the connection. This isNULL for an internal thread, or for a user session that failed to authenticate.

  • HOST

    The host from which the client connected. This isNULL for an internal thread, or for a user session that failed to authenticate.

  • CURRENT_CONNECTIONS

    The current number of connections for the account.

  • TOTAL_CONNECTIONS

    The total number of connections for the account.