Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "fix" #1183

Merged
merged 1 commit into from
Dec 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,23 @@
| -------------- | ------------------- | --------------- | -------------------------------------------- |
| ACCOUNT_NAME | 租户名称 | varchar | mo_account |
| ADMIN_NAME | 创建时默认超级管理员名称 | varchar | 每个租户下的 mo_user 表中 |
| CREATED_TIME | 创建时间 | timestamp | mo_account |
| CREATED | 创建时间 | timestamp | mo_account |
| STATUS | 当前状态,OPEN 或 SUSPENDED | varchar | mo_account |
| SUSPENDED_TIME | 停用时间 | timestamp | mo_account |
| DB_COUNT | 数据库数量 | bigint unsigned | mo_tables |
| TBL_COUNT | 表数量 | bigint unsigned | mo_tables |
| TABLE_COUNT | 表数量 | bigint unsigned | mo_tables |
| ROW_COUNT | 总行数 | bigint unsigned | sum(mo_table_rows()) |
| SIZE | 使用空间总量(MB) | decimal(29,3) | sum(mo_table_size(mt.reldatabase,mt.relname) |
| SNAPSHOT_SIZE | 备份的数据存储大小(MB) | -- | -- |
| COMMENTS | 创建时的 COMMENT 信息 | varchar | mo_account |

| COMMENT | 创建时的 COMMENT 信息 | varchar | mo_account |

## **示例**

```sql
mysql> show accounts;
+--------------+------------+---------------------+--------+----------------+----------+-----------+----------+---------------+----------------+
| account_name | admin_name | created_time | status | suspended_time | db_count | tbl_count | size | snapshot_size | comments |
+--------------+------------+---------------------+--------+----------------+----------+-----------+----------+---------------+----------------+
| acc0 | root | 2024-12-09 06:07:44 | open | NULL | 5 | 65 | 0 | 0 | |
| sys | root | 2024-12-09 02:19:22 | open | NULL | 7 | 108 | 8.298243 | 0 | system account |
+--------------+------------+---------------------+--------+----------------+----------+-----------+----------+---------------+----------------+
2 rows in set (0.01 sec)
+--------------+------------+---------------------+--------+----------------+----------+-------------+-----------+-------+----------------+
| account_name | admin_name | created | status | suspended_time | db_count | table_count | row_count | size | comment |
+--------------+------------+---------------------+--------+----------------+----------+-------------+-----------+-------+----------------+
| sys | root | 2023-02-14 06:58:15 | open | NULL | 8 | 57 | 2681 | 0.351 | system account |
+--------------+------------+---------------------+--------+----------------+----------+-------------+-----------+-------+----------------+
1 row in set (0.14 sec)
```
Loading