Home > Database > Mysql Tutorial > body text

查询mysql所有表的大小_MySQL

WBOY
Release: 2016-06-01 13:11:21
Original
901 people have browsed it

先用

use information_schema;
Copy after login
SELECT sum(DATA_LENGTH+INDEX_LENGTH) as size,table_name FROM tables where table_schema='数据库名' group by table_name order by size desc;
Copy after login


哪些表数据量大就一目了然了噢

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!