SHOW ACCOUNTS

Description

Lists the meta information and statistics for the accounts created.

Syntax

  1. > SHOW ACCOUNTS;

Meta information of account

Column NameDetailsTypeDate Source
ACCOUNT_NAMEAccount namevarcharmo_account
ADMIN_NAMEThe default administrator name is createdvarcharIn the mo_user table under each account
CREATEDCreated timetimestampmo_account
STATUSStatus, OPEN or SUSPENDEDvarcharmo_account
SUSPENDED_TIMESuspended timetimestampmo_account
DB_COUNTthe number of databasesbigint unsignedmo_tables
TABLE_COUNTthe number of tablesbigint unsignedmo_tables
ROW_COUNTTotal line numberbigint unsignedsum(mo_table_rows())
SIZETotal space used (MB)decimal(29,3)sum(mo_table_size(mt.reldatabase,mt.relname)
COMMENTCOMMENT information at creation timevarcharmo_account

Examples

  1. mysql> show accounts;
  2. +--------------+------------+---------------------+--------+----------------+----------+-------------+-----------+-------+----------------+
  3. | account_name | admin_name | created | status | suspended_time | db_count | table_count | row_count | size | comment |
  4. +--------------+------------+---------------------+--------+----------------+----------+-------------+-----------+-------+----------------+
  5. | sys | root | 2023-02-14 06:58:15 | open | NULL | 8 | 57 | 2681 | 0.351 | system account |
  6. +--------------+------------+---------------------+--------+----------------+----------+-------------+-----------+-------+----------------+
  7. 1 row in set (0.14 sec)