mysql 查看表空间
主要是查看创建的库和系统自带的库大小
- SELECT table_schema,
concat(sum(round(data_length / (1024 * 1024), 2)), 'MB') data_length,
concat(sum(round(index_length / (1024 * 1024), 2)), 'MB') index_length,
concat(sum(round(round(data_length + index_length) / (1024 * 1024), 2)), 'MB')total_size FROM information_schema.TABLES group by
table_schema;