查看数据表的数据容量大小
Mysql数据库有一个 information_schema 库
在这个库下 执行下面的语句:
SELECT
concat(
round(
sum(DATA_LENGTH / 1024 / 1024),
2
),
'MB'
) AS DATA
FROM
TABLES
WHERE
table_schema = 'cloud'
AND table_name = 'table_event';
-- table_schema 是指 表所属的库名称
--table_name 是指 表的名称