Tag Archives: MYSQL

MYSQL列举某个数据库下面各个表的磁盘空间占用情况

列举所有数据库的磁盘空间占用情况

select TABLE_SCHEMA, concat(truncate(sum(data_length)/1024/1024,2),’ MB’) as data_size,
concat(truncate(sum(index_length)/1024/1024,2[......]

继续阅读

Posted in 杂七杂八 | Tagged | Leave a comment