您好,欢迎访问一九零五行业门户网

查看mysql各数据库使用大小以及库中每个表最后修改时间_MySQL

bitscn.com
这两个语句在平时维护mysql数据库时还是比较常用的
1.查看mysql中各database大小
select sum(data_length)+sum(index_length) from information_schema.tables where table_schema='database_name';
结果是以字节为单位,除1024为k,除1048576为m。
2.查看表的最后mysql修改时间
select table_name,update_time from information_schema.tables where table_schema='database_name';
通过查看数据库中表的最后更新时间。(很久没有更新不代表现在没有使用哦)。
作者“永不放弃”
bitscn.com
其它类似信息

推荐信息